Try putting it on the radios instead of radio group .

-swaroop



On 10/9/07, SantiagoA <[EMAIL PROTECTED]> wrote:
>
>
> I added an AjaxFormChoiceComponentUpdatingBehavior to my radioGroup.
> I thought it would handle the event, when a RadioButton is clicked.
> But when i click on a RadioButton the onUpdate-method is never reached.
>
> my Code:
>
>    final RadioGroup radioGroup = new RadioGroup("group", new
> PropertyModel(this, "selectedCode"));
>    radioGroup.add(new AjaxFormChoiceComponentUpdatingBehavior(){
>        private static final long serialVersionUID = -5356375735369681460L;
>        @Override
>        protected void onUpdate(AjaxRequestTarget target) {
>                selectedCode = (Code)getModelObject();
>                target.addComponent(targetComponent);
>        }
>    });
>
> Is my expectation wrong?
> Am i using the wrong ajax behavior?
>
> I tried also with AjaxFormComponentUpdatingBehavior and AjaxEventBehavior
> but it didn´t work either.
> I´m using wicket1.3.0beta3 and ajax-updates are working on
> input-components.
>
>
>
> --
> View this message in context:
> http://www.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-doesn%C2%B4t-get-event-tf4594788.html#a13117508
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--

Reply via email to