I don't know the code currently works (I've only started looking at wicket) so not entirely sure what instances I'll find in "mylistofchoices" but assuming theres a Choice object, how about a new ChoiceGroup object that takes choices?
Select select=new Select("sel");
List mylistofchoices = new ArrayList();
mylistofchoices.add(new Choice("name", "value");
List mygroupofchoices = new ChoiceGroup("groupname");
mygroupofchoices.add(new Choice("anothername, "value");
mylistofchoices.add(mygroupofchoices);
Choices nogroup=new Choices("nogroup", mylistofchoices, choicerenderer);
select.add(nogroup);
Or something similar?
On 11/23/05, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
working on it right now :) how did you know?
