Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:multibox and disabled attribute

 
Jonathan Lister
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TRY
 
Jonathan Lister
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Marc, that works if I add the class name to the logic:iterate tag as in
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic