open an rfe in jira -igor
2010/2/15 Leszek Gawron <lgaw...@apache.org>: > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org