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

[jira] [Resolved] (WICKET-6573) WicketTesterHelper ignores invalid Ajax-Event names starting with "on"

     [ https://issues.apache.org/jira/browse/WICKET-6573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-6573.
-------------------------------------
       Resolution: Fixed
    Fix Version/s: 8.1.0

Fixed! Thank you!

> WicketTesterHelper ignores invalid Ajax-Event names 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
>            Assignee: Martin Grigorov
>            Priority: Major
>             Fix For: 8.1.0
>
>
> 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)