Thanks for the suggestion. Matej also suggested this on IRC but I think 
the current Select component should support this.

I'm going to try to implement the current Select as a repeating view.

Thanks again,

Huy
> Use a RepeatingView?
>
>
> Huy Do-4 wrote:
>   
>> 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
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>>
>>     
>
>   


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to