AjaxEventBehavior(onchange) and AjaxFormComponentUpdatingBehavior(onchange) on same DropDownChoice

2011-07-22 Thread Rodrigo Heffner
Hi guys, I'm very new to Wicket, and I came across this: What I want to do: - I have a DropDownChoice component and I'd like to update it's model when it changes through AJAX. Also, I want to refresh (repaint, reload) this dropdown's parent when a value is changed, also though AJAX. My

Re: AjaxEventBehavior(onchange) and AjaxFormComponentUpdatingBehavior(onchange) on same DropDownChoice

2011-07-22 Thread Clint Checketts
Why not put everything in the AjaxFormComponentUpdatingBehavior? As in: dropDownChoice.add(new AjaxFormComponentUpdatingBehavior(onchange) { @Override protected void onUpdate(AjaxRequestTarget target) { LOG.debug(New updated value: +

Re: AjaxEventBehavior(onchange) and AjaxFormComponentUpdatingBehavior(onchange) on same DropDownChoice

2011-07-22 Thread Rodrigo Heffner
Hi Clint, Thank you very much for your (quick) response. I had the (maybe incorrect) idea that AjaxEventBehavior's target.addComponent(aComponent) would only make aComponent refresh itself through AJAX (and not store new changed values on it's model). I also thought that the

Re: AjaxEventBehavior(onchange) and AjaxFormComponentUpdatingBehavior(onchange) on same DropDownChoice

2011-07-22 Thread Rodrigo Heffner
So far it seems to work. Thank you Clint On Fri, Jul 22, 2011 at 12:55 PM, Rodrigo Heffner rodrigo.heff...@gmail.com wrote: Hi Clint, Thank you very much for your (quick) response. I had the (maybe incorrect) idea that AjaxEventBehavior's target.addComponent(aComponent) would only make