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

AjaxRequestTarget could skip component when its ancestor is added too

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.0
    • 1.4.1
    • wicket
    • None

    Description

      Say you have the following component hierarchy:
      Page
      -> Component A
      -> Component B

      Now component B is added to an AJAXRequestTarget for rendering, followed by another call to addComponent() with component A.
      This results in component B rendered twice to the AJAX response, first standalone, then embedded in A's markup.

      The attached patch skips responding of a component when its parent is added too.

      Attachments

        1. AjaxRequestTarget.diff
          1.0 kB
          Sven Meier

        Activity

          People

            ivaynberg Igor Vaynberg
            svenmeier Sven Meier
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: