Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5664

Log a warning if the name of the JavaScript event starts with 'on'

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.0-M2
    • Fix Version/s: 7.0.0-M3
    • Component/s: wicket
    • Labels:
      None

      Description

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

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Tzvetanov Grigorov
              Reporter:
              mgrigorov Martin Tzvetanov Grigorov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: