Re: [Wicket-user] wicket.markup.html.form.CheckBox vs wicket.ajax.form.AjaxFormComponentUpdatingBehavior = not working?

2006-07-13 Thread Igor Vaynberg
also onchange on the checkboxes is delayed until the onblur event so you are better off using onclick, and there is of course a wicket.ajax.markup.html.form.AjaxCheckBox ready for you as well-Igor
On 7/13/06, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
Did you do myForm_sammen.setOutputMarkupId(true) in your page constructor?MartijnOn 7/13/06, Nino Wael <[EMAIL PROTECTED]> wrote:> Hi>
> Im currently working on a checkbox that needs to do some stuff on a onchange request.>> However it looks as the AJAX call never is made, I have other ajax calls on the page that works just fine (also using the onchange modifier)
>>> When looking at the below code it should work fine it seems to me but it dosent:>> Wicket javaCode:>> cb_HeleLandet = new CheckBox("hele_landet", new PropertyModel(
> reportModel, "heleLandet"));> cb_HeleLandet.setOutputMarkupId(true);> cb_HeleLandet.add(new AjaxFormComponentUpdatingBehavior("onchange") {
> protected void onUpdate(AjaxRequestTarget target) {> myForm_sammen.setEnabled(reportModel.getHeleLandet());> target.addComponent
(myForm_sammen);>> }> });>> Wicket html code:> 
>> Wicket html when output from server:>> >