How is it possible to make menu items visible or not depending on the users rights?
In the menu code I am using at this moment, I define all menu levels and items in a jsp page. This makes it possible to control if the items are visible just with a simple if statement.
you can do one of the following:
1. move menu from external JS file into the main document and show one hierarchy or another based on the access levels
2. generate the items structure inside the main document or in separate server side script dynamically at the page load time ( see http://www.softcomplex.com/forum/viewthread_3551/ for concept and other forums for working samples)
3. create multiple external static JS files with the items (separate for each user role) and dynamically link one of them based on the current user