• Post Reply Bookmark Topic Watch Topic
  • New Topic

Best possible approach?  RSS feed

 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is the scenario which we need to implement:

1. There is a top navigation in the application which consists of Level1,level2 and level3 tabs.
2. Level2 tabs are childeren of L1 and L3 are children of L2.
3. We are showing all the L1 tabs whenever a user logs in but have to grey out(disable) the tabs to which the user is not entitled.
Whats the best possible approach to implement this scenario?

The tabs are images with hyperlinks.
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Gavi,

Do some security privileges make the user entitle to receive the labels, or some other business rules? If the first assumption is true, then do you use standard J2EE security?
Regards.
 
Gavi Raaghav
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Valentin,
The only crieteria to enable/disable the tabs is the user entitlement which is configured in the database. I think we need to store the hierarchy of tabs for every user role in the DB and load it once the user logs in.Just trying to validate my thinking....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!