ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  A Custom JSP Tag Library for Dynamic Menus
Subject:   How to configure Dynamic menu for User and Access Right
Date:   2007-09-18 00:53:02
From:   Venkatreddy
Response to: How to configure Dynamic menu for User and Access Right

Hi,


I have come across the same issue.Solution is we need have a column in table which specifies role.
Get the list of menu items that should be disabled.Have it in List.Then pass this list to js as an Array.


In DynamicMenu.js file access that array elements and call your function then add this foollowing lines there....


document.getElementById('mi_' + this.container.id + '_' + menuid).disabled = true;



IF any queries post it.


Thanks,
Venkat.