I found a solution for my problem, I downloaded the XtreeMenuDysplayer.java class on :
 
This class checks permissions before building the tree.
the class use the same _javascript_ and css 
I just had to recompile struts-menu2.3.jar with the new displayer, declare it in the menu-config.xml and change in my jsp  :

<menu:useMenuDisplayer name="Xtree" repository="TreeRepository" permissions="rolesAdapter" >

<menu:displayMenu name="tree" />

</menu:useMenuDisplayer>

 

Reply via email to