Re: Two home pages?

2007-12-16 Thread John Krasnay
On Sat, Dec 15, 2007 at 08:44:32PM -0800, Cristina wrote: Hello, I'm working on an app where users and admins will perform mutually exclusive use cases. That's quite a common situation. It looks like the simpler approach here would be to return one home page with the user menu and another

Re: Two home pages?

2007-12-16 Thread Martijn Dashorst
Why not: Application#getHomePage() { if(!isUser()) { return AdminPage.class; } return UserPage.class; } On Dec 16, 2007 2:46 PM, John Krasnay [EMAIL PROTECTED] wrote: On Sat, Dec 15, 2007 at 08:44:32PM -0800, Cristina wrote: Hello, I'm working on an app where users and admins

Re: Two home pages?

2007-12-16 Thread Maurice Marrink
Or create a single page used by both user as an entry point and have different menu options visible depending on the user. Hint: a security framework like swarm can easily do this. :D ;) http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security Maurice On Dec 16, 2007 5:02 PM, Martijn

Two home pages?

2007-12-15 Thread Cristina
home. Is this approach feasible? Even if it is, would it be a best practice? Are there better options available? Thanks so much, Cristina -- View this message in context: http://www.nabble.com/Two-home-pages--tp14358509p14358509.html Sent from the Wicket - User mailing list archive

Re: Two home pages?

2007-12-15 Thread Igor Vaynberg
available? Thanks so much, Cristina -- View this message in context: http://www.nabble.com/Two-home-pages--tp14358509p14358509.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail