Re: t5: InjectPage and context

2009-05-03 Thread Ville Virtanen
Forgot to mention that the PageRenderLinkSource is not part of T5.0.18, It was introduced later. - Ville Ville Virtanen wrote: > > Hi, > > Two solutions: > > 1. Use PageLink in tml. (And supply the context to it from the java class) > > 2. Use PageRenderLinkSource (return > PageRenderLinkS

Re: t5: InjectPage and context

2009-05-03 Thread Ville Virtanen
Hi, Two solutions: 1. Use PageLink in tml. (And supply the context to it from the java class) 2. Use PageRenderLinkSource (return PageRenderLinkSource.createPageRenderLinkWithContext(WriteMsg.class, Object... context);) Neither requires injected page. - Ville Angelo Chen wrote: > > Hi, >

t5: InjectPage and context

2009-05-03 Thread Angelo Chen
Hi, I have a page called WriteMsg, in another page I use follow code to inject the page @InjectPage private WriteMsg writeMsg Ojbect onActionFromWrite() { return writeMsg; } but how to pass a context to the instance of page without using @Persist instances? Thanks, public class