Hi,
I have been trying to use select and selectoptions in wicket-extensions
but I can't figure out how to get a dynamic set of optgroups going.
I have seen the example from the mailing list where
<select wicket:id="myselect">
<optgroup wicket:id="mygroup">
<option></option>
</optgroup>
<optgroup wicket:id="mygroup2">
<option></option>
</optgroup>
</select>
My problem lies in the fact that I don't know all my optgroups before
hand. It changes depending on the current user.
I am trying to get the following output
<select>
<optgroup label="group1">
<option>1</option>
<option>2</option>
</optgroup>
<optgroup label="group2">
<option>3</option>
<option>4</option>
</optgroup>
...
...
</select>
Any pointers would be greatly appreciated.
Thanks
Huy
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user