[ 
https://issues.apache.org/jira/browse/WICKET-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13643981#comment-13643981
 ] 

Martin Grigorov commented on WICKET-5085:
-----------------------------------------

The problem is even deeper.
The problem with the many instances of InlineEnclosureHandler is easily solved 
by making the 'counter' variable static.

But there is still a problem when PanelA is repeated in Wicket repeater. In 
this case the produced markup for all renderings of PanelA have the same HTML 
ids. 
                
> InlineEnclosure are piling up on each render
> --------------------------------------------
>
>                 Key: WICKET-5085
>                 URL: https://issues.apache.org/jira/browse/WICKET-5085
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.6.0, 1.5.10
>            Reporter: Sven Meier
>            Assignee: Martin Grigorov
>             Fix For: 6.7.0, 1.5.11
>
>
> InlineEnclosureHandler#resolve() uses an auto-incremented id for its resolved 
> InlineEnclosure, 
> On the next render, a new instance will be resolved, since the id of the 
> already resolved InlineEnclosure does not match the id in the markup.
> But InlineEnclosures are not removed after render as other auto-components, 
> thus all instances pile up in the owning container of the markup.

--
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

Reply via email to