Moved from sf.net
http://sourceforge.net/tracker/index.php?func=detail&aid=1356309&group_id=48726&atid=453974:
If menu item can be invisible at one time it is remove
from list of components and would never be avalable.
Code from VelocityMenuDisplayer
MenuComponent[] components = menu.getMenuComponents();
for (int i = 0; i < components.length; i++) {
if (isAllowed(components[i])) {
componentsAllowed.add(components[i]);
}
}
menu.getComponents().clear();
menu.getComponents().addAll(componentsAllowed);
Onse this done not Allowed Items will disapper forever.
Followups:
Date: 2005-11-16 09:51
Sender: y-hosaka
Logged In: YES
user_id=1379015
I wrote a patch for using VelocityMenuDisplayer and
PermissionsAdapter.(cf.: Patches[1358227])
Though, I don't know whether my patch can fix your problem.