Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Hi, send a quickstart, I tried to simulate here without success, CheckBoxMultipleChoice is working fine. On Wed, Feb 23, 2011 at 2:20 PM, eugenebalt wrote: > > Yes, I've tried both the first one and the second one with > "onclick"/"onchange". The problem is still happening. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321391.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Yes, I've tried both the first one and the second one with "onclick"/"onchange". The problem is still happening. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321391.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Just a thought - have you looked at the difference between AjaxFormChoiceComponentUpdatingBehavior and AjaxFormComponentUpdatingBehavior? (I know you mentioned upload, but perhaps there is a clue in there...) -- Jim Pinkham On Wed, Feb 23, 2011 at 10:57 AM, eugenebalt wrote: > > Hi Kikiya, thanks a lot for the reply. Can you provide details on what you > did? > > For everyone else reading this. Maybe the original post wasn't worded very > well, but here's the issue: When I'm doing Form onSubmit(), > CheckBoxMultipleChoice.getInput() returns correct results. However, in any > Ajax code, CheckBoxMultipleChoice.getInput() returns NULL. This is only a > problem with the CheckBoxMultipleChoice, not with any other fields. > > I talked with co-workers and we think it's because the top-level > CheckBoxMultipleChoice isn't propagating the Input changes to the > lower-level checkboxes. But on the Form onSubmit(), everything gets mapped > correctly, and the whole checkbox group gives the right inputs on > getInput(). > > Thanks > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321248.html > Sent from the Users forum mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Hi Kikiya, thanks a lot for the reply. Can you provide details on what you did? For everyone else reading this. Maybe the original post wasn't worded very well, but here's the issue: When I'm doing Form onSubmit(), CheckBoxMultipleChoice.getInput() returns correct results. However, in any Ajax code, CheckBoxMultipleChoice.getInput() returns NULL. This is only a problem with the CheckBoxMultipleChoice, not with any other fields. I talked with co-workers and we think it's because the top-level CheckBoxMultipleChoice isn't propagating the Input changes to the lower-level checkboxes. But on the Form onSubmit(), everything gets mapped correctly, and the whole checkbox group gives the right inputs on getInput(). Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3321248.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckBoxMultipleChoice.getInput() = NULL after switch to AjaxSubmit
Not a ton of detail, but I think I've had a similar problem. I had to add an ajax on update or on change behavior to my form component in order for it to see the input value. Not sure if that is the optimal solution. But it did work without any noticed drawback. I'm interested in finding out what would be optimal however. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckBoxMultipleChoice-getInput-NULL-after-switch-to-AjaxSubmit-tp3317829p3320170.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org