[
https://issues.apache.org/jira/browse/WICKET-5724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172355#comment-14172355
]
Andrea Del Bene commented on WICKET-5724:
-----------------------------------------
{quote}
It is not very clear to me :-/
Why "auto components are queued if our component queue is not empty" ?
What happens if "our component queue is empty" ?
{quote}
Autocomponets that are added with autoAdd are not available when we call method
queue(Component... components). This is what causes the issue. With my solution
we perform again queuing if a container autocomponent is added with autoAdd.
This makes sense only if the outer container has some unfound components in its
queue (if component queue is empty everything is fine).
{quote}
Why the auto components are not removed anymore at the end of the rendering ?
They are in their correct position only when queue() is used. But if add() is
used then they are still auto and should be removed, IMO.
{quote}
If we remove auto components also their children components get removed. This
causes a "component not found" exception in situations like the one of the
quickstart project, i.e. queued components are inside auto components.
I didn't know that autocomponent should be removed "by contract". The previous
comment inside detachChildren was a little ambiguous about it. IMHO we can
leave autocomponents where they are.
> Queueing component in autocomponent
> -----------------------------------
>
> Key: WICKET-5724
> URL: https://issues.apache.org/jira/browse/WICKET-5724
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.0.0-M3
> Reporter: Palancher aurélien
> Assignee: Andrea Del Bene
> Fix For: 7.0.0-M4
>
> Attachments: queueing-problem.zip, queueing-solution.zip,
> wicket5724.patch
>
>
> There is an exception when a component is added to queue when its parent is
> an auto component
> <body>
> <a href="panier.html">
> <span wicket:id="inlink"></span>
> </a>
> </body>
> Last cause: Unable to find component with id 'inlink' in
> [TransparentWebMarkupContainer [Component id = wicket_relative_path_prefix_1]]
> Expected: 'wicket_relative_path_prefix_1:inlink'.
> Found with similar names: ''
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)