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

OnChangeAjaxBehaviour gets called if there was no change

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 8.10.0
    • None
    • wicket-core
    • None

    Description

      Consider this code where a TextField gets a OnChangeAjaxBehaviour 

      // 
      TextField<String> tf = new TextField<>("id", model);
      tf.add(new OnChangeAjaxBehaviour() {
        public void onUpdate(AjaxRequestTarget target) {
          LOG.debug("update");
        }
      }
      form.add(tf)

      The onUpdate() method is also called on focus out. But focus out does no updates.

      Attachments

        Activity

          People

            svenmeier Sven Meier
            bebbo Stefan Franke
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: