isAllowed modifications causing blank screen for coolmenu4

"Sachin Puri" <[email protected]>
Newsgroups gmane.comp.java.struts-menu.user
Message-ID <[email protected]>
Hello ,

Thanks for reading my email.

I have a small error while using coolmenu4 with permissionform.jsp and 
permissionMenu.jsp. I made some changed to the isAllowed method so that all 
the checkboxes clicked on permissionform.jsp would be displayed. The new 
modified isAllowed works fine with coolMenu and menuList but when I use it 
with coolmenu4 it displays a blank screen.

My code for isAllowed :

public boolean isAllowed(MenuComponent menu) {

boolean retVal = true;
if(menu.getUrl() != null)
{
if(menuNames.contains(menu.getName()))
{
retVal = true;
} // inner if ends
else
retVal = false;
} // outer if ends

return retVal;
} // isAllowed ends.


Please any suggestion as how to make changes to isAllowed so that all the 
checkboxes on permissionForm.jsp would be visible would be very highly 
appreciated.

Regards,
   Sachin.




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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.