Hi Haulyn,
It should be no different. Lets say one of the panel you use is called
EditTypePanel which needs authorization, you
can simply check like with the code shown below.
@Override
protected void init() {
super.init();
getSecuritySettings().setAuthorizationStrategy(new
IAuthorizationStrategy() {
public boolean isActionAuthorized(Component component,
Action action) {
return true;
}
public <T extends Component> boolean
isInstantiationAuthorized(Class<T>
componentClass) {
if
(EditTypePanel.class.isAssignableFrom(componentClass)) {
// Is user signed in?
if (((OASSession)
Session.get()).isSignedIn()) {
// okay to proceed
return true;
}
// Force sign in
throw new
RestartResponseAtInterceptPageException(LoginPage.class);
}
return true;
}
});
Haulyn R. Jason wrote:
>
> Hi,
>
> I use IAuthorizationStrategy to control all my applications, but I do not
> know how to control TabbedPanel.
>
> I have three panels, I can control the panel itself, but in the same way,
> I
> write code to control the tabbledPanel title to display or not, it does
> not
> work.
>
> Is there a way to control that? Thanks.
>
> --
> Thanks!
>
> VVThumb Production
>
> Location: Shumagang 6H-8, Jinan, Shandong, China 250000
> Mobile: +086-15864011231
> email: [email protected]
> website: http://haulynjason.net
> gtalk: [email protected]
> skype: saharabear
> QQ: 378606292
> msn:[email protected] <msn%[email protected]>
> yahoo:[email protected] <yahoo%[email protected]>
> Twitter: http://twitter.com/saharabear
> Linkedin: http://www.linkedin.com/in/haulyn
>
> Haulyn Jason
>
>
--
View this message in context:
http://old.nabble.com/How-to-use-IAuthorizationStrategy-to-control-TabbedPanel-title--tp26403580p26560481.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]