hello,

is there any reason why PanelCachingTab.isVisible() does not delegate to inner tab ?. This results in such spaghetti code:


                tabs.add( new PanelCachingTab( new AbstractTab( new ResourceModel( 
"configuration" ) ) {
                        @Override
                        public Panel getPanel( String panelId ) {
                                return new UnitConfigurationPanel( panelId, 
getModel(), notificationsPanel );
                        }
                } ) {
                        @Override
                        public boolean isVisible() {
                                MonitoringUserDetails userDetails = 
(MonitoringUserDetails) UserUtils.getPrincipal();
                                return 
userDetails.getMonitoringUser().isConfigurationAccess();
                        };
                });


        lg

--
Leszek Gawron                              http://lgawron.blogspot.com

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

Reply via email to