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 2014/08/06 12:41:14 UTC
[jira] [Resolved] (WICKET-5664) Log a warning if the name of the
JavaScript event starts with 'on'
[ https://issues.apache.org/jira/browse/WICKET-5664?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-5664.
-------------------------------------
Resolution: Fixed
Fix Version/s: 7.0.0-M3
> Log a warning if the name of the JavaScript event starts with 'on'
> -------------------------------------------------------------------
>
> Key: WICKET-5664
> URL: https://issues.apache.org/jira/browse/WICKET-5664
> Project: Wicket
> Issue Type: Task
> Components: wicket
> Affects Versions: 7.0.0-M2
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 7.0.0-M3
>
>
> 'onclick' has been used in Wicket 1.5 and older versions as a name of the HTML attribute
> Since 6.0.0 Wicket uses event registration (via jQuery#on()) and the leading 'on' is no more needed.
> At the moment Wicket cuts the prefix but automatically this disallows usage of custom event names like "onmycustomname".
> I suggest to log a warning in 7.x and remove the automatic cut of 'on' in Wicket 8.0.
--
This message was sent by Atlassian JIRA
(v6.2#6252)