@Inject
    private ComponentResources resources;
...
    String url = resources.createPageLink("pageName", false, context).toURI();

Cheers,
Nick.


Peter Stavrinides wrote:
> Hi all,
> 
> I am currently upgrading a Tapestry 4 app to Tapestry 5, I am still 
> adjusting to the differences between the two frameworks. In Tapestry 4 I 
> could retrieve a page link using the page service IEngineService like this:
> 
> final ILink pageLink = pageService.getLink(false, pageName);
> 
> I gather ILink no longer exists in T5 but there is PageLink instead, so 
> what infrastructure or service can  be used to retrieve the PageLink 
> using only the page name.
> 
> Thanks,
> Peter
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to