Have you tried ComponentSource  ?

   @Inject
  private ComponentSource compSource;
    
 MyPage comp = (MyPage) compSource.getPage(pageName); 


Shing







Home page : http://www.lombok.demon.co.uk/



--- On Tue, 25/11/08, Henrik Schlanbusch <[EMAIL PROTECTED]> wrote:

> From: Henrik Schlanbusch <[EMAIL PROTECTED]>
> Subject: Get instance of page
> To: users@tapestry.apache.org
> Date: Tuesday, 25 November, 2008, 5:43 AM
> Hi
> 
> In tapestry 4 it was possible to get an instance of a page
> by using the
> cycle.getPage("somePageName"); Then it was
> possible to set properties on the
> page before activating it. I would like to do something
> like this in T5, it
> seems that the only way to get an instance of a page is by
> getting it from an
> injected property (InjectPage). Is it possible in T5 to get
> hold of page
> instances without using injected properties, but through
> string identifiers like
> in T4?
> 
> Henrik
> 
> 
> ---------------------------------------------------------------------
> 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