Preventing disallowed items from being added to menu

[email protected]
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
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
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.