Wicket
  1. Wicket
  2. WICKET-5302

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.9.1
    • Fix Version/s: 6.10.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      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>

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          1d 5h 25m 1 Martin Grigorov 06/Aug/13 15:44
          Martin Grigorov made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 7.0.0 [ 12322958 ]
          Fix Version/s 6.10.0 [ 12324643 ]
          Resolution Fixed [ 1 ]
          Hide
          Martin Grigorov added a comment -

          From now on the listeners will work with the original/modifiable map and can modify it if needed.

          Show
          Martin Grigorov added a comment - From now on the listeners will work with the original/modifiable map and can modify it if needed.
          Martin Grigorov made changes -
          Remote Link This issue links to "Mail discussion (Web Link)" [ 12500 ]
          Martin Grigorov made changes -
          Field Original Value New Value
          Attachment inline-enclosure-doubling.tar.gz [ 12596070 ]
          Hide
          Martin Grigorov added a comment -

          Demo application

          Show
          Martin Grigorov added a comment - Demo application
          Martin Grigorov created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development