Re: Does permissions works with Velocity ?

"Philippe de Saint Leger" <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Organization Aubay Conseil
Message-ID <[email protected]>
I found a solution for my problem, I downloaded the XtreeMenuDysplayer.java class on :
http://cvs.sourceforge.net/viewcvs.py/struts-menu/navigator/src/java/net/sf/navigator/displayer/

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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.