Re: add context to redirected page

2010-07-21 Thread Chuck Kring
Thanks! Chuck Luu Tuan Cuong wrote: Hi, You can use the service: PageRenderLinkSource. @Inject PageRenderLinkSource _linkSource; private Link getPageLink(Class pageClass, Object... context) { return _linkSource.createPageRenderWithContext(pageClass, context); } public Object setup

Re: add context to redirected page

2010-07-21 Thread Luu Tuan Cuong
Hi, You can use the service: PageRenderLinkSource. @Inject PageRenderLinkSource _linkSource; private Link getPageLink(Class pageClass, Object... context) { return _linkSource.createPageRenderWithContext(pageClass, context); } public Object setupRender(){ node = Node.getByNodeId(node

Re: add context to redirected page

2010-07-21 Thread Mark W. Shead
Can you put a public method on the page to set the node id and then do something like: red.setNodeId(node); On Wed, Jul 21, 2010 at 9:26 PM, Chuck Kring wrote: > I have a page that takes a nodeId as a parameter, then redirects into the > page to a different page depending upon the type of obj

add context to redirected page

2010-07-21 Thread Chuck Kring
Hi, I have a page that takes a nodeId as a parameter, then redirects into the page to a different page depending upon the type of object referred to by the nodeId. I also would like to set the nodeId of the redirected page. What's the best way to do this? Thanks. Chuck public class myP