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

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 7.0.0-M2
    • 7.0.0-M3
    • wicket
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: