It helps a lot. That was I was looking for. Thanks.

Oscar

Onno Scheffers <[EMAIL PROTECTED]> wrote: Oscar Picasso schreef:

>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.
>  
>
Would this help? I use it to generate the URL to a page through the 
PageService:

   @InjectObject("engine-service:page")
   public abstract IEngineService getPageService();

   public String getPageURL(IRequestCycle cycle, String pageName) {
     return getPageService().getLink(false, pageName).getURL();
   }

If you really want to capture the output of a component, I think you 
need to provide your own MarkupWriter and parse it contents?

Regards,

Onno


> [input] 
>
>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 
 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.
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




                
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Reply via email to