Two Laptop Bag*
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:multibox and disabled attribute" Watch "html:multibox and disabled attribute" New topic
Author

html:multibox and disabled attribute

Jonathan Lister
Greenhorn

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
Sheriff

Joined: Feb 05, 2003
Posts: 4727

TRY


A good workman is known by his tools.
Jonathan Lister
Greenhorn

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: http://aspose.com/file-tools
 
subject: html:multibox and disabled attribute