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

Fixed WicketTester to detect components in enclosure when doing isComponentOnAjaxResponse.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 8.0.0-M6
    • 8.0.0-M7
    • wicket

    Description

      When a component is in a wicket:enclosure and is then correctly re-rendered using ajax, WicketTester seemed to not be able to detect that the component was in the ajax response in the isComponentOnAjaxResponse method.

      A functionality has been additionalwhere isComponentOnAjaxResponse tries to find an enclosure whose child is the given component, and if one is found, it recurses into isComponentOnAjaxResponse passing the enclosure as an argument.

      In order not to duplicate logic detecting when an enclosure's child is a given component, AjaxEnclosureListener's isControllerOfEnclosure has been switched to public and static.

      Attachments

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              klopfdreh Tobias Soloschenko
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: