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] [Created] (WICKET-5664) Log a warning if the name of the JavaScript event starts with 'on'

Martin Grigorov created WICKET-5664:
---------------------------------------

             Summary: 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


'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)