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