Re: Setup render for authentication check?

2008-05-22 Thread Adam Zimowski
I'm implementing security in a Dispatcher. No need to keep security logic in a page. On Thu, May 22, 2008 at 4:17 AM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > I'd use the pageAttached method. > > Uli > > Am Do, 22.05.2008, 11:00, schrieb Leon Derks: >> Hello >> >> Is the SetupRender method the co

Re: Setup render for authentication check?

2008-05-22 Thread Ulrich Stärk
I'd use the pageAttached method. Uli Am Do, 22.05.2008, 11:00, schrieb Leon Derks: > Hello > > Is the SetupRender method the correct place to check if the user has the > priviliges to view the page? > > For example something like this: > > @SetupRender > boolean setupRender() { > if(user has

RE: Setup render for authentication check?

2008-05-22 Thread Cordenier Christophe
Hello, IMHO, I would have used @OnEvent("activate") phase. No need to wait for rendering process. Christophe. -Message d'origine- De : Leon Derks [mailto:[EMAIL PROTECTED] Envoyé : jeudi 22 mai 2008 11:00 À : Tapestry users Objet : Setup render for authentication check?

Setup render for authentication check?

2008-05-22 Thread Leon Derks
Hello Is the SetupRender method the correct place to check if the user has the priviliges to view the page? For example something like this: @SetupRender boolean setupRender() { if(user has priviliges) { return true; } return false; } Leon