Suppose I create a Wicket DropDownChoice
containing a number of items.
Is it possible to display all items, but selectively disable one or more of them?
The only control you have over the appearance of the items is provided by IChoiceRenderer
, but that only allows you to modify the text displayed for each item.
<optgroup>
tag an option for you: w3schools.com/tags/tag_optgroup.asp ? – Wichern