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

Sylvain Vieujot commented on WICKET-4000:
-----------------------------------------

Ok. I understand the advantage of being able to have a child replace a parent 
contribution, but I wouldn't it be possible to keep an intuitive order, and to 
still have the last contribution replace the previous ones inplace ?

Also here the logic is not followed completely as the Application contributions 
are rendered first anyway.

Last, what I see is that the <wicket:head> is rendered before the code 
contributions of the renderHead method.
I would suggest to invert this, as usually I guess you would use the renderHead 
to include more general code / libraries, and then the <wicket:head> to include 
more specific code, most likely using the libraries contributed by the 
renderHead method.

> Header contributions order is not stable
> ----------------------------------------
>
>                 Key: WICKET-4000
>                 URL: https://issues.apache.org/jira/browse/WICKET-4000
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5-RC6
>            Reporter: Sylvain Vieujot
>         Attachments: quickstart-scriptsOrder.zip
>
>
> In the last RCs, I started to experience problems with the contributions 
> order.
> For example, I add jQuery, and until 1.5RC5, it worked well, but now the call 
> to the jQuery script has been moved to the bottom of the page head, and this 
> disables all my other scripts that are expecting jQuery's $ to be defined.
> I attach a quickstart to demonstrate the problem.
> Maybe the order in the quickstart is not the expected one, but what it shows 
> is that the order does not make real sense (at least to me) :
> In the quickstart, the wicket:head tag contributions are in the order 3 - 8 - 
> 9 - 5, and the renderHead methods contributions are in the order 4 - 1 - 2 - 
> 6 - 7.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to