Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-13 Thread Konstantin
Hi, it's me again :-) Filip S. Adamsen-2 wrote: > > It still looks to me like you only need a PageLink. It has three > parameters that you should use: page, context, and disabled. Page is the > page name, context is a list/array of context parameters, and disabled > decides whether to render

Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-12 Thread Filip S. Adamsen
have to use within the Grid and place some type of Link-component in the template. Look here for example: http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html The UserList.tml right at the middle of the page. Hope that helps, nillehammer - origi

Re: Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-12 Thread Konstantin
gt; > The UserList.tml right at the middle of the page. > > Hope that helps, nillehammer > > > ----- original Nachricht > > Betreff: Re: T5 t:renderObject and pageLink won't render link just text > instead > Gesendet: Do, 12. Jun 2008 > Von: Konstantin<[EMAI

Re: Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-12 Thread nille hammer
ff: Re: T5 t:renderObject and pageLink won't render link just text instead Gesendet: Do, 12. Jun 2008 Von: Konstantin<[EMAIL PROTECTED]> > > Irony ... good :-) Thanks for trying to help me with my dumb questions. > I simplified my first sample, let me make it more close to wha

Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-12 Thread Konstantin
Irony ... good :-) Thanks for trying to help me with my dumb questions. I simplified my first sample, let me make it more close to what I wanted: @Property private MyGridRowObject myObject; // public Object getMyDynaObject() { Link testLink; switch(myObject.type) {

Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-11 Thread Filip S. Adamsen
Hi, I see. It's actually easier than you'd think. Here's what you do: Class: @Inject private ComponentResources componentResources; public String getLink() { return componentResources.createPageLink("targetpagehere", true").toURI(); } Template: text for link See? It's easy.

Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-11 Thread Konstantin
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 in page markup for link, but instead I get "ta

Re: T5 t:renderObject and pageLink won't render link just text instead

2008-06-11 Thread Filip S. Adamsen
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 exp

T5 t:renderObject and pageLink won't render link just text instead

2008-06-11 Thread Konstantin
in tml: in java: @Inject private ComponentResources componentResources; public Object getMyDynaObject() { Link testLink; testLink = componentResources.createPageLink("targetPageHere", true, "11"); return testLink; } Renders text "targetPageHere/11" ins