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

Using InlineEnclosure leads to two re-renderings of the controlling child component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.9.1
    • 6.10.0, 7.0.0-M1
    • wicket
    • None

    Description

      org.apache.wicket.protocol.http.AjaxEnclosureListener adds the inline enclosure when the controlling child is repainted but doesn't remove the child itself from the map and this leads to two <component> elements in the Ajax response.

      <?xml version="1.0" encoding="UTF-8"?>
      <ajax-response>
      <component id="cc7" ><![CDATA[<div wicket:id="cc" id="cc7">New CC</div>]]></component>
      <component id="wicket_InlineEnclosure_06" ><![CDATA[<div wicket:enclosure="cc" id="wicket_InlineEnclosure_06">
      Before<br/>

      <div wicket:id="cc" id="cc7">New CC</div>

      After<br/>
      </div>]]>
      </component>
      </ajax-response>

      Attachments

        1. inline-enclosure-doubling.tar.gz
          20 kB
          Martin Tzvetanov Grigorov

        Issue Links

          Activity

            People

              mgrigorov Martin Tzvetanov Grigorov
              mgrigorov Martin Tzvetanov Grigorov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: