Wicket
  1. Wicket
  2. WICKET-4748

Improve WicketTester to be able to find AjaxBehaviors on second/third/... event name

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0
    • Fix Version/s: 6.1.0
    • Component/s: wicket
    • Labels:
      None

      Description

      Since Wicket 6.0 it is possible to pass several event names to any AbstractDefaultAjaxBehavior via AjaxRequestAttributes#setEventNames(String...) or by using jQuery's specific compound event name (e.g. AjaxEventBehavior("eventOne eventTwo")).

      WicketTesterHelper#findAjaxEventBehavior() currently can only work with AjaxEventBehavior and its specializations and only with full event name, i.e. the test should use "eventOne eventTwo".

        Activity

        Hide
        Martin Grigorov added a comment -

        WicketTesterHelper has been improved to support compound names.
        The other case, with AjaxRequestAttributes#getEventNames() wont be supported for now because the APIs do not allow to get the attributes. Since there is no real requirement for this feature it wont be implemented.

        Show
        Martin Grigorov added a comment - WicketTesterHelper has been improved to support compound names. The other case, with AjaxRequestAttributes#getEventNames() wont be supported for now because the APIs do not allow to get the attributes. Since there is no real requirement for this feature it wont be implemented.

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Martin Grigorov
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development