Hi,

Take a look at 
http://www.nabble.com/T5%3ALogin-and-session-to12276631.html#a12276933
sample here , I used that approach, it works, but eventually I use the
approach in the wiki, dispatcher approach, I'd suggest you go with
dispatcher.

Angelo


daniel alonso-3 wrote:
> 
> First of all, thanks for all the support given through this mailing list.
> I'm a newbie in this framework and after reading a couple of book and the
> wiki, I have a question concerning about this:
> 
> I want to control the access to pages by user's role. I've checked the
> tapestry example about how to authenticate a user and restrict its access
> to
> the private area but, .. is there any way of put the access ckeck in a
> parent class or something like that. I'm thinking about that because maybe
> put this in each page
> 
> 
>     @ApplicationState
>     private    User user;
>     private boolean userExists;
>     //    estos dos van de la mano con el nombre
>     Object onActivate() {
>         if (!userExists)
>             return Start.class;
>         return null;
>     }
> 
> 
> 
> 
> could be a bit annoying. May anyone tell a nice way to do it? Any kind of
> help would be very appreciated ;D
> 
> Thanks in advance to all.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Controlling-acccess-to-different-users-by-profile-tp16626816p16628151.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to