Wicket
  1. Wicket
  2. WICKET-1582

WicketTester executeAjaxEvent onclick generating non-AJAX response

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.4, 1.4-M3
    • Fix Version/s: 1.3.5, 1.4-RC1
    • Component/s: wicket
    • Labels:
      None
    • Environment:
      Wicket 1.3-SNAPSHOT as of today

      Description

      Executing:
      tester.executeAjaxEvent("linky", "onclick");
      tester.assertComponentOnAjaxResponse(component);
      throws an exception saying "The Previous response was not an AJAX response. You need to execute an AJAX event, using clickLink, before using this assert" although executeAjaxEvent should be resulting in an AJAX response (and prior to 1.3.3 it did).

      Executing tester.clickLink("linky"), which probably should be equivalent to the above executeAjaxEvent, does work.

      I'll attach a simple testcase demonstrating this behaviour.

      1. wicket1582.jar
        3 kB
        Nick Johnson

        Issue Links

          Activity

          Nick Johnson created issue -
          Nick Johnson made changes -
          Field Original Value New Value
          Attachment wicket1582.jar [ 12381336 ]
          Johan Compagner made changes -
          Fix Version/s 1.3.4 [ 12313089 ]
          Assignee Maurice Marrink [ mrmean ]
          Martijn Dashorst made changes -
          Fix Version/s 1.3.4 [ 12313089 ]
          Fix Version/s 1.3.5 [ 12313175 ]
          Martijn Dashorst made changes -
          Link This issue is blocked by WICKET-254 [ WICKET-254 ]
          Timo Rantalaiho made changes -
          Assignee Maurice Marrink [ mrmean ] Timo Rantalaiho [ thrantal ]
          Timo Rantalaiho made changes -
          Fix Version/s 1.4-M4 [ 12313295 ]
          Affects Version/s 1.4-M3 [ 12312912 ]
          Timo Rantalaiho made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              Timo Rantalaiho
              Reporter:
              Nick Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development