RE: TabbedPanel + authorization strategy

2014-05-05 Thread MDU
How should i impliment the ROl and Auth on the AbstractTab . 

Please find the below code for ref 

 final List tabs = new ArrayList(); 
 final AbstractTab ABCTab = new AbstractTab(new Model(ABC)) { 

//@Override 
  Public Panel getPanel(final String panelId) { 

return ABCPanal(panelId, Main.this); 
} 
  

}; 
 tabs.add(ABCTab ); 

final AbstractTab XYXTab = new AbstractTab(new Model(XYZ)) { 
@Override 
public Panel getPanel(final String panelId) { 
return new XYZPanal(panelId, Main.this); 
} 

}; 
  tabs.add(XYZPanal); 
  final AjaxTabbedPanel tabPanel = new AjaxTabbedPanel(tabs, tabs); 
  this.add(tabPanel); 


I have 2 tab on the page. How should i disable for one of the tab for
perticular rols 

I have tried with the 
MetaDataRoleAuthorizationStrategy.authorize(ABCTab,RENDER, ADMIN); 

but it is not working as it is Abstract Class and not the complonet. 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-authorization-strategy-tp1893255p4665675.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: TabbedPanel + authorization strategy

2014-05-05 Thread MDU
How should i impliment the ROl and Auth on the AbstractTab .

Please find the below code for ref

 final List tabs = new ArrayList();
 final AbstractTab ABCTab = new AbstractTab(new Model(ABC)) {

//@Override
  Public Panel getPanel(final String panelId) {

return ABCPanal(panelId, Main.this);
}
  

};
 tabs.add(ABCTab );
   
final AbstractTab XYXTab = new AbstractTab(new Model(XYZ)) {
@Override
public Panel getPanel(final String panelId) {
return new XYZPanal(panelId, Main.this);
}
   
};
  tabs.add(XYZPanal);
  final AjaxTabbedPanel tabPanel = new AjaxTabbedPanel(tabs, tabs);
  this.add(tabPanel);


I have 2 tab on the page. How should i disable for one of the tab for
perticular rols

I have tried with the 
MetaDataRoleAuthorizationStrategy.authorize(ABCTab,RENDER, ADMIN);

but it is not working as it is Abstract Class and not the complonet. 


Regards
MDU


--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-authorization-strategy-tp1893255p4665674.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: TabbedPanel + authorization strategy

2014-05-04 Thread MDU
 I have the same need of you . Could you share the implementation of 
your Secure TabbedPanel? 

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-authorization-strategy-tp1893255p4665666.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org