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

Remove AjaxEventBehavior#onCheckEvent() before Wicket 8.0.0

    XMLWordPrintableJSON

    Details

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

      Description

      org.apache.wicket.ajax.AjaxEventBehavior#onCheckEvent() will throw an exception if the event name starts with 'on', e.g. 'onclick'.
      Since version 6.0.0 Wicket uses JavaScript based event registration and the prefix 'on' is actually wrong. It has been used for pre-1.5 versions for the attribute names.
      There are valid use cases where applications may use custom JS events with names which start with 'on', so Wicket should not prevent them.

      During the milestone release org.apache.wicket.ajax.AjaxEventBehavior#onCheckEvent() will throw exception to really make developers fix the WARN message they have ignored in Wicket 7.x.
      The method has 'protected' visibility, so it could be overridden by applications which need to use custom events with 'on' prefix in their name.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: