You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by MDU <ma...@gmail.com> on 2014/05/05 06:29:00 UTC

RE: TabbedPanel + authorization strategy

 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: TabbedPanel + authorization strategy

Posted by MDU <ma...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: TabbedPanel + authorization strategy

Posted by MDU <ma...@gmail.com>.
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org