[
https://issues.apache.org/jira/browse/WICKET-5377?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sven Meier resolved WICKET-5377.
--------------------------------
Resolution: Invalid
Assignee: Sven Meier
>From its inception OnChangeAjaxBehavior reacts to "change" events *and* a
>keyup, keydown, paste, cut, input.
When the textfield loses focus, "change" is triggered and your example replaces
the contents of the table. Since mouse down and mouse up are not happening on
the same element, the browser will not fire a click event.
You can use new AjaxFormComponentUpdatingBehavior("inputchange") if you want to
prevent this.
> AjaxFormComponentUpdatingBehavior blocks AjaxLink#onClick when component is
> blurred
> -----------------------------------------------------------------------------------
>
> Key: WICKET-5377
> URL: https://issues.apache.org/jira/browse/WICKET-5377
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.3.0, 6.5.0, 6.10.0
> Environment: Env N/A. Browser: several versions of FF, IE, Chrome,
> and Safari.
> Reporter: Flavius
> Assignee: Sven Meier
> Attachments: AjaxLinksRequireTwoClicks.zip
>
>
> Create a page and add a TextField, OnChangeAjaxBehavior and repeatingView.
> Add an AjaxLink to each row. Add the OnChangeAjaxBehavior to the TextField.
> Each time the textfield receives a keystroke, it correctly fires the
> onUpdate() method. However, when the control is blurred, it also receives
> the onUpdate() event. That is probably acceptable, but the onClick() event
> of the AjaxLink does not fire. Only after the TextField is blurred does the
> onClick() event fire correctly.
> QuickStart attached.
> NOTE: I tried this with wicket 6.10, 6.5, and 6.3. It appears to have been
> introduced with the 6.x branch. The 1.5.x line did not exhibit this behavior.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira