Have you taken a look at the Wicket-Examples project's component references as linked from Wicket's website under the Learn section on the left panel? http://www.wicket-library.com/wicket-examples/compref/
More specifically the RadioGroup and Radio: http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/or g.apache.wicket.examples.compref.RadioGroupPage?2 You need your form, then add to it a RadioGroup whose model holds on to the active Radio selection and then add all the Radio buttons to the RadioGroup. The RadioGroup can be a <span> tag and if I am not wrong even a <wicket:container> tag. Same concept applies to the CheckGroup and Check, not to be confused with CheckBox. Hope that helps! ~ Thank you, Paul Bors PS: Since Wicket is open source, you can download those projects including wicket-examples and run them locally on your computer. See the "Provide a path" link from under the Contribute section on the left panel of the home page an then follow the "Check out the code" link. -----Original Message----- From: Andrea Del Bene [mailto:[email protected]] Sent: Saturday, August 11, 2012 3:48 PM To: [email protected] Subject: Re: RadioGroup Ok, but I still don't understand the relation between RadioGroup and the Radio controls you create. I mean, I expect to find a section of the code where you add Radio controls to RadioGroup (they "have to be in the component hierarchy somewhere below the group component" as stated into JavaDoc) > Hi Andrea, > ListView is only renderer for Radio elements, in real life > selectOneRadioItems isn't empty array. Code little bit difficult to > understand. But problem it setting model value after form submission > RadioGroup instance didn't put value to model, but on rendering phase > it reading data from model. > Wicket version 1.5.7. > Valery Gorbunov > On Sat, Aug 11, 2012 at 12:12 AM, Andrea Del Bene <[email protected]>wrote: > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
