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
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 Schlanbusc