For the exact same reason we use:

String pageName = someObject.getPageName();
Class<?> pageClass = someObject.getPageClass();
if (pageClass != null) {
    pageName = resolver.resolvePageClassNameToPageName(pageClass.getName());
}
pageLink = linkSource.createPageRenderLink(pageName, true, new Object[]{});

where resolver is ComponentClassResolver and linkSource is LinkSource.

Still, you have to use internal services atm :(

 - Ville 


Andreas Pardeike-2 wrote:
> 
> On 21 mar 2009, at 18.19, Robert Zeigler wrote:
> 
>> What's more is that it makes absolutely no sense to inject into a  
>> service;
>> ComponentResource for which component, in particular?
> 
> My Exception service has a method that handles my own redirect  
> execptions. Those
> have an embedded parameter PageClassName which needs to be converted  
> to an url.
> 
> Previously, I used ComponentResource for creating a page link from a  
> Page (which
> I get from RequestPageCache). How do I do this with 5.1?
> 
> /Andreas Pardeike
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/5.0.18---5.1.0.1-upgrade-problems-tp22619066p22657980.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to