my dog learned polymorphism
The moose likes Struts and the fly likes html:multibox and disabled attribute Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:multibox and disabled attribute" Watch "html:multibox and disabled attribute" New topic

html:multibox and disabled attribute

Jonathan Lister

Joined: Feb 22, 2004
Posts: 12
I am using the multibox in a loop and would like some of the options to be disabled, depending on a property from the bean ..
I have a long winded way that works like this ..

but I have the feeling that there *must* be a better way .. I have tried

which works fine under Oracle AS but fails under Tomcat when tring to cast Object to boolean. Adding a specific type doesn't seem to help either, as in:

Tomcat then complains about casting boolean to java.lang.Boolean.

I must be missing something really obvious?
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727


A good workman is known by his tools.
Jonathan Lister

Joined: Feb 22, 2004
Posts: 12
Many thanks Marc, that works if I add the class name to the logic:iterate tag as in
I agree. Here's the link:
subject: html:multibox and disabled attribute
jQuery in Action, 3rd edition