Dynamic <optgroup> support in wicket
I'm looking to render a <select> tag in my page using wicket, but group the options with <optgroup> , this was discussed on Separator in a Wicket DropDownChoice , but in the solutions there the <optgroup> assume that the <optgroup> tags are static, I'm wanting to pull both the options and the groups from a database. Use two nested repeaters to iterate over your groups and options: <select wicket:id="select"> <optgroup wicket:id="group"> <option wicket:id="option"></option> </optgroup> </select> I have had basically the same problem. After a few days looking for a short solution, I believe what