Hi, Thanks for the advice, but it's not what I intend to do. I already know how to use a PageLink.
What I want to do, is to capture the output of a PageLink and use it in a parameter of another component, in that case in a FieldLabel. The actual code should look like this. <span jwcid="@FieldLable" raw="true" displayName="ongl:'You should accept the ' + myPageLink" field="accept"/><input jwcid="[EMAIL PROTECTED]" value="ognl:tos"/> You see the difference. I don't use a PageLink here but I want a generated output at myPageLink. myPageLink would be a programmatically generated PageLink. I have already seen something similar with other kind of generated links used in conjuction with a RedirectException. I just don't find this example. Oscar Peter Svensson <[EMAIL PROTECTED]> wrote: Well, I think it's quite easy, since you only need to provide the name of the page, like go to Page1 So if you instead had go to Page And then had a method public String getPage() { return pagename; } In your class, you home free. See http://jakarta.apache.org/tapestry/tapestry/ComponentReference/PageLink.html for reference Cheers, PS On 4/24/06, Oscar Picasso wrote: > > Hi, > > How to create programmaticlly a PageLink? > > Actually I want to use the rendered pagelink inside a FieldLabel. > > Something like: > > displayName="ognl:myPageLink "/> > > Maybe you have a better idea for what I intend to do. > > Oscar > > > --------------------------------- > Celebrate Earth Day everyday! Discover 10 things you can do to help slow > climate change. Yahoo! Earth Day > --------------------------------- Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.