I'm just getting started in wicket, so forgive me if this is a too-dumb
question...

 

I know wicket can check the session for a user to ask a "user" object if
it is logged in.

However, you don't really want to paste code on every page.

What is the best way, to have each page inherit the base "security
check" routine?

 

Would you create a BasePage extends WebPage and put the logic there and
have all other pages extend BasePage?

Or would you attach some sort of a command object to each page and put
the logic in that?

 

Anyone have a reference to an example of code to do this?

 

THANKS!

 

 

 

Reply via email to