The html is as follows:

 <wicket:panel>
    <form wicket:id="form" class="form">
       <div class="rating" wicket:id="group">
              <input wicket:id="radio1" type="radio"/>
              <input wicket:id="radio2" type="radio"/>
              ...
       </div>
    </form>
</wicket:panel>

best regards, Chris


> Am 18.04.2015 um 13:14 schrieb Chris <[email protected]>:
> 
> Hi Sven,
> 
> the form is added to a panel.
> 
> Chris
> 
> 
>> Am 18.04.2015 um 11:26 schrieb Sven Meier <[email protected]>:
>> 
>> Hi,
>> 
>> is your RadioGroup is bound to <wicket:container> in your markup?
>> 
>> Sven
>> 
>> On 18.04.2015 07:00, Chris wrote:
>>> Hi all,
>>> 
>>> I have a radio group with different radio choices and I would like to add 
>>> ajax behavior to the group.
>>> With the method #AjaxFormChoiceComponentUpdatingBehavior, the #onUpdate is 
>>> never called currently.
>>> 
>>> How to fix this?
>>> 
>>> 
>>> 
>>> Form form = new Form("form");
>>> RadioGroup<RadioChoice> radioGroup = new RadioGroup<RadioChoice>("group", 
>>> new Model<RadioChoice>() {...}
>>> 
>>> Radio<RadioChoice> radio1 = new Radio<RadioChoice>("radio1", new 
>>> Model<RadioChoice>(1));
>>> Radio<RadioChoice> radio2 = new Radio<RadioChoice>("radio2", new 
>>> Model<RadioChoice>(2));
>>> radioGroup.add(radio1);
>>> radioGroupd.add(Radio2);
>>> 
>>> form.add(radioGroup);
>>> 
>>> radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior() {
>>>            protected void onUpdate(AjaxRequestTarget target) {
>>>                // Ajax actions here
>>>            }
>>> });
>>> 
>>> Thanks, Chris
>>> ---------------------------------------------------------------------
>>> 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]
>> 
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to