You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Stavrinides <p....@albourne.com> on 2007/08/28 09:24:25 UTC

Tapestry 4 to 5 page service

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry 4 to 5 page service

Posted by Nick Westgate <ni...@key-planning.co.jp>.
    @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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org