I think I'm missing concept behind renderObject component. The original idea was to render Link or just some text basing on other page properties and actual object to be rendered should be returned by public Object getMyDynaObject(). So I need to get <href ...> in page markup for link, but instead I get "targetPageHere/11". Is it possible to do without creating custom component ?
Filip S. Adamsen-2 wrote: > > Hi, > > Tapestry does what you ask it to do - returns a (relative) URI for the > link. (Check out the Javadocs/source for AbstractLink to see this.) > > I suspect that calling toAbsoluteURI() on the link will give you what > you want. Oh, and you won't need RenderObject for that - you can just do > an expansion ${myDynaObject} in that case. > > -Filip > > Konstantin skrev: >> in tml: >> >> <t:renderobject object="myDynaObject"/> >> >> in java: >> >> @Inject >> private ComponentResources componentResources; >> >> public Object getMyDynaObject() { >> Link testLink; >> testLink = componentResources.createPageLink("targetPageHere", >> true, >> "11"); >> return testLink; >> } >> >> Renders text "targetPageHere/11" instead of actual link. What am I doing >> wrong here ? >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/T5-t%3ArenderObject-and-pageLink-won%27t-render-link-just-text-instead-tp17782707p17783044.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]