You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Ackermann (JIRA)" <ji...@apache.org> on 2018/07/25 07:53:00 UTC

[jira] [Created] (WICKET-6573) WicketTesterHelper in ignores invalid Ajax-Eventnames starting with "on"

Sven Ackermann created WICKET-6573:
--------------------------------------

             Summary: WicketTesterHelper in ignores invalid Ajax-Eventnames starting with "on"
                 Key: WICKET-6573
                 URL: https://issues.apache.org/jira/browse/WICKET-6573
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 8.0.0
            Reporter: Sven Ackermann


Hi,
 we have a unit test for a component that still used an {{AjaxFormSubmitBehavior}} with event name "onchange". This test did not fail in Wicket 8 when using Method {{WicketTester.executeAjaxEvent("componentId", "change")}} as I would have expected.
 It's because {{WicketTesterHelper.findAjaxEventBehaviors}} removes the "on" from the behavior's event name and thus executes the behavior anyway. This should not be done anymore in Wicket 8, as I guess. So, WICKET-6148 and this [commit |https://github.com/apache/wicket/commit/1b366f0c7f205971a5d83c6cc853af0efdfac5df#diff-ca0225da7ea72cf7f22217734e2b7320] is incomplete.

Thanks for a fix.
Sven



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)