This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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