Re: Preventing disallowed items from being added to menu
Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
Which displayer are you using - 3 or 4? The sample app has a an example of removing the menu items for coolmenus4: http://raibledesigns.com/struts-menu/permissionsForm.jsp Matt On Apr 2, 2004, at 3:42 PM, [email protected] wrote: > Thanks for answering my last question on Tiles & Buttons. With your > suggestion I figured it out. > I now have a question about using the permissionsAdapter. > I create my own subclass and it works great. > My question is using the coolmenus (or any other style) how can I > prevent > the menu item for being added to the menu when the adapter's > isAllowed() > method returns false. Using coolmenus I can get these items to appear > 'disabled' in a different color by specifying the 'cmDisXXX' variables > in > the javascript but I can't seem to figure out how to prevent them from > being > added altogether. > Is there some setting I missed in the javascript or in the menu-config? > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: IBM Linux Tutorials > Free Linux tutorial presented by Daniel Robbins, President and CEO of > GenToo technologies. Learn everything from fundamentals to system > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > _______________________________________________ > struts-menu-user mailing list > struts-menu-user-TtF/[email protected] > https://lists.sf.net/lists/listinfo/struts-menu-user ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click