OnChangeAjaxBehavior + DatePicker do not work together
------------------------------------------------------

                 Key: WICKET-2424
                 URL: https://issues.apache.org/jira/browse/WICKET-2424
             Project: Wicket
          Issue Type: Bug
          Components: wicket, wicket-extensions
    Affects Versions: 1.4.0
         Environment: Firefox, IE
            Reporter: Alexey Varlamov
            Priority: Minor


DatePicker fails to notify component update when OnChangeAjaxBehavior is used 
on the target input.
It works well with AjaxFormComponentUpdatingBehavior.

The root cause seems to be in the Wicket.ChangeHandler added by the 
OnChangeAjaxBehavior, which hides user handler while the DatePicker calls 
onchange handler directly (wicket-date.js:186):
if (field.onchange != null && typeof(field.onchange) != 'undefined') 
field.onchange(); 

Possible fix could be dispatching onchange Event instead of direct handler 
invocation. 
Yet I don't know what is purpose of Wicket.ChangeHandler here...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to