Using struts I want to load a comboBox with a disabled option
when some value is loaded
The code below in struts
<html:select name="test" property="comments" indexed="true">
<html
ptions collection="collectionData" property="value" labelProperty="label"/>
</html:select>
shows the comboBox, but I want to disable when a specific value is loaded:
For instance , I make a combo of list of names. If the selected name is 'Paul', then the combo will load with Paul enabled to change but if the selected name is 'John', the combo will load with the disabled option (disabled=true).
How can I do using struts???
Thanks,