When I do this, the underlying model object isn't updated. I used the Wicket
Ajax Debug and see that the form isn't posted, so the modelobject doesn't
change.

2008/1/14, SantiagoA <[EMAIL PROTECTED]>:
>
>
> Hi,
> what javascript method do you use?  onclick, onMouseDown, onMouseUp?
> I add AjaxFormComponentUpdatingBehaviour("onchange") to Textfields and it
> works fine.
> Using Radios in radioGroup i had to use
>
>         radio.add(new AjaxEventBehavior("onchange"){
>         private static final long serialVersionUID =
> -5356375735369681460L;
>         @Override
>         protected void onEvent(AjaxRequestTarget target) {
>          do something;
>          target.addComponent(panelA);
>             target.addComponent(panelB);
>            }
> works fine for me.
> cheers,
> santiago
>
>
>
> Martijn Lindhout wrote:
> >
> > Hi all
> > I'm lost. I've tried all kinds of combinations to get the following
> > working,
> > but I either received exceptions or nothing happened. So back to what I
> > want:
> >
> > I have a form with a question, which possible answers are 'yes' or 'no'.
> I
> > want to use a radio choice for it. Depending on what the user chooses, I
> > want to show a panel A or B using Ajax. I started with the RadioChoice
> > component, but that way I have not enough control over the rendering of
> > the
> > choices (CSS stuff etc), so I now have a radiogroup and two radio's. I
> > added
> > a AjaxFormChoiceComponentUpdatingBehavior to the RadioGroup. In the
> > onUpdate, I check the model value. Depending on that value I modifiy the
> > visibility of the panels A and B and add both of them to the target.
> Point
> > is: the onUpdate isn't called.
> >
> > What is the right way to do this?
> >
> > --
> > Martijn Lindhout
> > JointEffort IT Services
> > http://www.jointeffort.nl
> > [EMAIL PROTECTED]
> > +31 (0)6 18 47 25 29
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Ajax-enabled-radiogroup-tp14797035p14801893.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Martijn Lindhout
JointEffort IT Services
http://www.jointeffort.nl
[EMAIL PROTECTED]
+31 (0)6 18 47 25 29

Reply via email to