Re: Radio group, model

2008-10-05 Thread Cristina
A small but important correction... :-) (e) HTML file: both radio buttons must be under a *span* tag enclosing the attribute-value pair *wicket:id=options*. Cristina -- View this message in context: http://www.nabble.com/Radio-group%2C-model-tp16678100p19831786.html Sent from the Wicket -

Re: Radio group, model

2008-10-04 Thread Cristina
Hi Goran, it looks like there's an easier way to use a RadioGroup. As the javadoc states, ... The model object of the group is set to the model object of the selected radio component or null if none selected. So you can just do the following, for instance: (a) WebPage class: private enum

Re: Radio group, model

2008-04-15 Thread Goran Novak
Thanks, I got it to work but I dont't understand why does RadioGroup has to have its own model. RadioGroup has a constructor RadioGroup(java.lang.String id), why does it exist if you can't create RadioGroup without its own model. It seems somewhat misleading. Here is the solution if someone

Re: Radio group, model

2008-04-15 Thread Igor Vaynberg
you really should read the javadoc for radiogroup -igor On Tue, Apr 15, 2008 at 1:20 AM, Goran Novak [EMAIL PROTECTED] wrote: Thanks, I got it to work but I dont't understand why does RadioGroup has to have its own model. RadioGroup has a constructor RadioGroup(java.lang.String id),

Re: Radio group, model

2008-04-14 Thread Michael O'Cleirigh
Hi Goran, I have a form with a radio group. Everithing works (page renders without errors) but I can't get selected radio in forms onSubmit method. model.getSomeRadioGroup() returns null. It probably some logical error using the models. Does radioGroup have to have its own model or something