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

Andrea Del Bene commented on WICKET-5724:
-----------------------------------------

I've attached a possible fix. TransparentWebMarkupContainer can be inside head 
section or inside body. In the first case we can not queue them because  
HtmlHeaderSectionHandler is added after the 
MarkupContainer#dequeueAutoComponents is invoked.
I changed RelativePathPrefixHandler in order to add an auto component factory 
only if tag is outside head section.
Let me know what do you think.

> 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
>         Attachments: queueing-problem.zip, queueing-solution.zip
>
>
> 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)

Reply via email to