CoolMenu Displayer Menu problems with PermissionAdapter
Tom Bednarz <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
I use struts-menu 2.2 with CoolMenu (3) in frames.
I have now extended my app with my own implementation of
PermissionAdapter. It seems that the implementation of the CoolMenu
displayer does not hide menus for unpermitted users but shows them in a
different color. There seems to be a problem since I get a JavaScript error:
Error: cmDisBGColorOff is not defined
Source File: http://smartwszg3:8080/Echnaton/buildAppHeader.do
Line: 209
The generated code looks OK apart from the fact, that this object (and I
guess also the object 'cmDisBGColorOn') is not defined:
<script language="javascript">
oCMenu.makeMenu('MyNTAcct','','My NT Account'+cmTopMenuImage+'','','','','','','',cmDisBGColorOff,cmDisBGColorOn,cmDisTxtColor,cmDisHoverColor,'')
oCMenu.makeMenu('MyNTAcct_Props','MyNTAcct','Properties','','','','','','',cmDisBGColorOff,cmDisBGColorOn,cmDisTxtColor,cmDisHoverColor,'')
oCMenu.makeMenu('MyNTAcct_Trx','MyNTAcct','Transactions','','','','','','',cmDisBGColorOff,cmDisBGColorOn,cmDisTxtColor,cmDisHoverColor,'')
oCMenu.makeMenu('MyNTAcct_HDProf','MyNTAcct','HD & Profile','','','','','','',cmDisBGColorOff,cmDisBGColorOn,cmDisTxtColor,cmDisHoverColor,'')
oCMenu.makeMenu('MyNTAcct_Memberships','MyNTAcct','Group memberships','','','','','','',cmDisBGColorOff,cmDisBGColorOn,cmDisTxtColor,cmDisHoverColor,'')
.......
Can anybody help me with that? Is there a way to simply NOT display
menus which are not allowed. Users get only confused, if they see
greyed-out things (bad software design).
Many thanks for your help
Tom
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285