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

OnChangeAjaxBehavior attached to DropDownChoice produces two Ajax requests in Chrome v35

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.9.1, 7.0.0-M1
    • 7.0.0-M3, 6.17.0
    • wicket
    • None
    • Chrome 35.0.1916.114

    Description

      I have a DropDownChoice with attached OnChangeAjaxBehavior, like this:

      new DropDownChoice<>("dd", new Model<>(), Arrays.asList( "First", "Second"))
          .add( new OnChangeAjaxBehavior() {
              @Override
              protected void onUpdate(AjaxRequestTarget target) {
                  System.out.println( "update" );
              }
      });
      

      When selecting any of drop down options, two Ajax requests being generated.
      It behaves OK in IE, FF and Chrome v34, only Chrome v35 is affected

      Attachments

        1. test.zip
          1 kB
          Andrey Krasnopolsky
        2. wicket.patch
          4 kB
          Andrea Del Bene

        Issue Links

          Activity

            People

              bitstorm Andrea Del Bene
              redfield Andrey Krasnopolsky
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: