Re: Get instance of page

2008-11-26 Thread Howard Lewis Ship
This is also the general case for why you can return a page name from a event handler method, as well as a page instance or page class. On Wed, Nov 26, 2008 at 6:35 PM, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > Em Tue, 25 Nov 2008 01:45:38 -0300, Henrik Schlanbusch <[EMAIL PROTECT

Re: Get instance of page

2008-11-26 Thread Thiago H. de Paula Figueiredo
Em Tue, 25 Nov 2008 01:45:38 -0300, Henrik Schlanbusch <[EMAIL PROTECTED]> escreveu: Hi Thiago Hi, Henrik! The pattern you're using makes a lot of sense. :) I just wasn't smart enough to find a problem that fitted your solution (getting a page through its name). . . :D I am doing thi

Re: Get instance of page

2008-11-24 Thread Henrik Schlanbusch
>Thiago H. de Paula Figueiredo > gmail.com> writes: > > Em Mon, 24 Nov 2008 18:43:37 -0300, >Henrik Schlanbusch enovate.no> > escreveu: > > > Is it possible in T5 to get hold >of page > > instances without using injected >properties, but through string > > identifiers like in T4? > > U

Re: Get instance of page

2008-11-24 Thread Henrik Schlanbusch
Shing Hing Man yahoo.com> writes: > > Have you tried ComponentSource ? > >@Inject > private ComponentSource compSource; > > MyPage comp = (MyPage) compSource.getPage(pageName); > > Shing Shing, thanks man! This worked. I can now get instances of the pages through their id! Best reg

Re: Get instance of page

2008-11-24 Thread Thiago H. de Paula Figueiredo
Em Mon, 24 Nov 2008 18:43:37 -0300, Henrik Schlanbusch <[EMAIL PROTECTED]> escreveu: Is it possible in T5 to get hold of page instances without using injected properties, but through string identifiers like in T4? Using @InjectPage is the T5 way to do it, but it is possible that there is

Re: Get instance of page

2008-11-24 Thread Shing Hing Man
m: 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")

Get instance of page

2008-11-24 Thread Henrik Schlanbusch
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