Re: TabbedPanel + authorization strategy

2010-01-08 Thread toberger
Okay, with your example implementation I can disable the content of the tab. But the tab itself is still visible. And I am searching a way to disable this tab itself too. Jeroen Steenbeeke wrote: > > I believe the default behavior is to throw an > UnauthorizedInstantiationException > if compo

Re: TabbedPanel + authorization strategy

2010-01-08 Thread toberger
This is my problem. How do I get the information, if the user has not the permission to see the panel? I create a tab list like this: List tabs = new ArrayList(); tabs.add(new AbstractTab(new Model("panel")) { public Panel getPanel(String panelId) { return new FooPanel(panelId); } ...

Re: TabbedPanel + authorization strategy

2010-01-07 Thread toberger
Hi, I'm sorry to put such an old topic up. But I'm searching for a way to secure tabs with wicket-auth-roles and I don't want to display the tabs when the user has no authorization for its content panel. I can't find the source code which is related to. Maybe somone can just add a little code sn