RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
onclick doesn't work either. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 1:56 AM To: users@wicket.apache.org Subject: Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel also, for what its worth, onclick

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
Ok, I noticed when I use AjaxFormComponentUpdatingBehavior, no JavaScript gets added to radio buttons. -Original Message- From: Zhubin Salehi [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008 9:18 AM To: users@wicket.apache.org Subject: RE: Problem with using RadioGorup and

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
are you adding the bheavior to Radio or RadioGroup, it needs to go to Radio components -igor On Thu, Mar 20, 2008 at 6:21 AM, Zhubin Salehi [EMAIL PROTECTED] wrote: Ok, I noticed when I use AjaxFormComponentUpdatingBehavior, no JavaScript gets added to radio buttons. -Original

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
I'm adding AjaxFormComponentUpdatingBehavior to RadioGroup. If I add it to Radio I get a runtime exception that says AjaxFormComponentUpdatingBehavior can only be added to a FormComponent. -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2008

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
right. see AjaxFormChoiceComponentUpdatingBehavior -igor On Thu, Mar 20, 2008 at 10:02 AM, Zhubin Salehi [EMAIL PROTECTED] wrote: I'm adding AjaxFormComponentUpdatingBehavior to RadioGroup. If I add it to Radio I get a runtime exception that says AjaxFormComponentUpdatingBehavior can only

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
I added the AjaxFormChoiceComponentUpdatingBehavior to Radio objects and I got a runtime exception (can only be added to...), then I added it to the RadioGroup and nothing happens when I change the selection! -Original Message- From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent:

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Zhubin Salehi
OK, now I changed my code to this: add(nanp = new RadioChoice(nanp, new PropertyModel(this, phoneNumber.nanp), Arrays.asList(new String[] { true, false }))); nanp.add(new AjaxFormComponentUpdatingBehavior(onclick) {

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
in onupdate you should be calling getmodelobject() -igor On Thu, Mar 20, 2008 at 10:55 AM, Zhubin Salehi [EMAIL PROTECTED] wrote: OK, now I changed my code to this: add(nanp = new RadioChoice(nanp, new PropertyModel(this, phoneNumber.nanp), Arrays.asList(new String[] {

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-20 Thread Igor Vaynberg
there is also a bug report in jira for formchoice..behavior, see if that affects you... -igor On Thu, Mar 20, 2008 at 11:08 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: in onupdate you should be calling getmodelobject() -igor On Thu, Mar 20, 2008 at 10:55 AM, Zhubin Salehi [EMAIL

Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Zhubin Salehi
Hi all, I'm trying to update some TextFields in a FormComponentPanel when the user selects a radio button from a RadioGroup. Here is a fragment of my code that created Radio and RadioGroup objects: add(nanp = new RadioGroup(nanp, new PropertyModel(this, phoneNumber.nanp)));

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Igor Vaynberg
ajax event behavior does not send over input. try ajaxformcomponentupdatingbehavior. -igor On Wed, Mar 19, 2008 at 2:19 PM, Zhubin Salehi [EMAIL PROTECTED] wrote: Hi all, I'm trying to update some TextFields in a FormComponentPanel when the user selects a radio button from a RadioGroup.

RE: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Zhubin Salehi
So now I wrote this code: nanp.add(new Radio(nanpTrue, new Model(new Boolean(true; nanp.add(new Radio(nanpFalse, new Model(new Boolean(false; nanp.add(new AjaxFormComponentUpdatingBehavior(onschange) { private static

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Igor Vaynberg
i dont think browsers support an onschange event :) -igor On Wed, Mar 19, 2008 at 7:24 PM, Zhubin Salehi [EMAIL PROTECTED] wrote: So now I wrote this code: nanp.add(new Radio(nanpTrue, new Model(new Boolean(true; nanp.add(new Radio(nanpFalse, new

Re: Problem with using RadioGorup and AjaxEventBehavior in a FormComponentPanel

2008-03-19 Thread Igor Vaynberg
also, for what its worth, onclick works a lot better for this sort of thing when dealing with check/readio html components -igor On Wed, Mar 19, 2008 at 10:55 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think browsers support an onschange event :) -igor On Wed, Mar 19, 2008 at