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

Sven Ackermann commented on WICKET-6339:
----------------------------------------

Sorry, I do not have enough time at the moment to provide a test case. Our 
setup is quite complex for this and I'm not allowed to provide you with our 
code.

The problem is actually very obvious. If I have a situation like this:
RootMarkup
- MarkupFragment 1 (startIndex=2, size=10)
-- MarkupFragment 2 (startIndex=3, size=5)

then for MarkupFragment 2 the iterator will start at root index 2, but should 
start at 5 (startIndex of its parent MarkupFragment 1 must be added).

> Wrong implementation of MarkupFragment.iterator()
> -------------------------------------------------
>
>                 Key: WICKET-6339
>                 URL: https://issues.apache.org/jira/browse/WICKET-6339
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.2.0
>            Reporter: Sven Ackermann
>
> The method returns {{getRootMarkup().iterator(startIndex, size)}}, but this 
> only works when {{getRootMarkup() == getParentMarkup()}} or all intermediate 
> {{MarkupFragment}}s start at index 0.
> The {{startIndex}} of all intermediate {{MarkupFragment}}s must be added, 
> otherwise the iterator starts at a wrong index.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to