You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2013/08/05 11:20:49 UTC

[jira] [Created] (WICKET-5302) Using InlineEnclosure leads to two re-renderings of the controlling child component

Martin Grigorov created WICKET-5302:
---------------------------------------

             Summary: Using InlineEnclosure leads to two re-renderings of the controlling child component
                 Key: WICKET-5302
                 URL: https://issues.apache.org/jira/browse/WICKET-5302
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 6.9.1
            Reporter: Martin Grigorov
            Assignee: Martin Grigorov
         Attachments: inline-enclosure-doubling.tar.gz

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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira