Hi, #onSelectionChanged() works only if you override #wantOnSelectionChanged() to return true. Otherwise you can also use AjaxFormChoiceComponentUpdatingBehavior() and update the label with Ajax.
On Fri, Jun 15, 2012 at 11:01 AM, Dmitriy Neretin <dmitriy.nere...@googlemail.com> wrote: > Hi all, > > I have a little problem with my RadioGroup component. I have 2 radio > buttons inside of a ListView, witch is inside of the RadioGroup I mentioned > above. The amount of the radios is not predefined that's because I use > RadioGroup instead of RadioChoise. There can be 2 or 1000... > > The Problem is following: I also have a Label below that RadioGroup and I > want that this label updates itself every time I select the other radio > button. I tried to override the onSelectionChanged method of the RadioGroup > but the method will not be executed! (I set a method- breakpoint on it) > > What do I wrong? > > The whole thing looks like that: > > RadioGroup > ListView > Rado, Text, Links etc. > > Label to update > > RadioGroup > - o Option A > - o Option B > > Label: You have selected option A/option B > > Thank you! > Dmitriy -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org