Subject: how: nested:multibox group disabled="true" if another bean property = "false" From: "Jeff" <[EMAIL PROTECTED]> === I have a situation where I have a few dozen rows that are being rendered using the nested taglib to iterate through an array of beans.
Among other things, I have a boolean property named "enabled" with a corresponding nested:checkbox whose checked/un-checked status depends upon whether or not isEnabled() returns "true" or "false". That part works. Further down the row, I have a nested:multibox whose checked status depends upon whether the particular checkbox's value is among the Strings in an array. That part works too. WHAT I WANT TO DO: I want the multibox group to have 'disabled="true"' whenever the bean's "enabled" property is false. In other words, when the enabled/disabled checkbox at the beginning of the row is un-checked at page render time because the bean's isEnabled() property didn't return "true", I want the html:multibox group's "disabled" property to be "true" (thus rendering the multibox group grayed-out and immutable). It doesn't need to be -- and in fact, shouldn't be -- dynamic html. If the bean's "enabled" property = false (and hence, the "enabled" checkbox is un-checked), I _don't want_ people to be able to change the values of the remaining checkboxes until they've first explicitly enabled the row by checking the "enabled" box and submitting it to the server. If it were legal to get away with dropping a logic:equal tag in the middle of the html:multibox tag's parameter list, like: <html:multibox... <logic:equal ...>disabled="true"</logic:equal> /> it would achieve the result I want. But of course, taglib parameters aren't allowed to be wrapped in other taglibs, so I'm trying to find another solution. If it's easier, I -could- deal with having the CLASS property of the rendered checkboxes vary according to the value of the "enabled" property instead. I'm mainly doing the "disable" to make it visually obvious that the row has been globally disabled, so the individual checkbox settings are essentially moot. Any ideas? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

