That gave me some hints indeed. Thanks ! The authorization needs to be placed on the link (that is created when overriding the newlink method from TabbedPanel).
Mr Mean wrote: > > Not sure if it is of help to you, but Swarm has an example on how to do > this: > http://wicketstuff.org/wicketsecurity/tabs/ > You probably want the hide tabs option. > Source is available at > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples > > Maurice > > On Nov 27, 2007 8:02 AM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: >> >> I tried that, but it won't compile. Maybe because AbstractTab doesn't >> extends >> Component? >> I can't add the @AuthorizeAction to the panel, because the panel is only >> created when the specific tab is clicked. >> >> >> >> Eelco Hillenius wrote: >> > >> > On Nov 26, 2007 10:38 PM, Marieke Vandamme <[EMAIL PROTECTED]> wrote: >> >> >> >> That was my last solution, because i hoped it could be integrated with >> >> the >> >> auth-roles so i didn't have to check the role myself. Because if i'm >> >> right, >> >> before adding the tab to the list, i check with the role from the >> user's >> >> session? >> > >> > So did you try using @AuthorizeAction(action = Action.RENDER, roles = >> > Roles.ADMIN)? That way you could just add the panels and they wouldn't >> > be rendered when the user isn't authorized. And you can keep the >> > actual authorization code out of your normal component construction >> > code. >> > >> > Eelco >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-tf4875256.html#a13965770 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/TabbedPanel-%2B-authorization-strategy-tf4875256.html#a13968886 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]