Re: Does permissions works with Velocity ?
Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
It's possible that permissions aren't checked in the VelocityDisplayer.
I'm not sure, I havent' looked at the code in a while.
Matt
On Mar 24, 2005, at 8:46 AM, Philippe de Saint Leger wrote:
> Hello
>
> I have a question about the useMenuDisplayer tag,
>
> I use an Velocity Displayer with Xtree and a database MenuComponent
> build.
> Everything works perfectly but the RolesAdapter !
> I can see items on my tree that I shouldn't !
>
>
> <script type="text/javascript">
> <menu:useMenuDisplayer name="Velocity" config="xtree.html"
> permissions="rolesAdapter" repository="TreeRepository" >
> if (document.getElementById) {
> <menu:displayMenu name="tree"/>
> } else {
> var msg = "Your browser does not support document.getElementById().\n";
> msg += "You must use a modern browser for this menu.";
> alert(msg);
> }
> </menu:useMenuDisplayer>
>
> I tried With CoolMenu4 MenuDisplayer and Permissions works perfectly !
>
> So, Does permissions works with Velocity ?
>
> I'm Working on it for 2 days ... please help me ...
>
>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click