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

OnChangeAjaxBehavior attached to DropDownChoice produces two Ajax requests in Chrome v35

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.9.1, 7.0.0-M1
    • Fix Version/s: 7.0.0-M3, 6.17.0
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      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. wicket.patch
          4 kB
          Andrea Del Bene
        2. test.zip
          1 kB
          Andrey Krasnopolsky

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: