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
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
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
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
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) {
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.
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
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
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