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/06 16:45:48 UTC
[jira] [Resolved] (WICKET-5302) Using InlineEnclosure leads to two
re-renderings of the controlling child component
[ https://issues.apache.org/jira/browse/WICKET-5302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-5302.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.10.0
7.0.0
>From now on the listeners will work with the original/modifiable map and can modify it if needed.
> 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
> Fix For: 7.0.0, 6.10.0
>
> 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