Didn't think about that. But you are right of course. The pages header
contributions are added last. The only disadvantage I can think of is
that you can not develop self-contained wicket components/widgets as
you would always need to add this ref to the page. Well, not even that
is true. getPage().add() of course works from everywhere. Very well,
that is the way to make it.

May be you can add a comment to the Wiki?

Juergen

On 6/15/06, Davy De Durpel <[EMAIL PROTECTED]> wrote:
>
> Well no. It would only solve my problem. How selfish of me to propose
> something like that ;-)
>
> I felt so sorry this morning that I have searched for a real solution to
> Michaels problem, and guess what I found it.
>
> All that needs to be done is add something similar to this at the end of the
> child page constructor:
>
> add(HeaderContributor.forCss(MyChildPage.class, "MyChildCSS.css"));
>
> I have tested it and the result is that the link to MyChildCSS.css is the
> very last item in the <head> of the rendered page.  And it even can be used
> to solve my case :-)
>
> The limitation is that it only works for Wicket 1.2.  It should also be
> possible for the other versions but then Michael should have a look at
> Eelco's blog about header contributions:
> http://chillenious.wordpress.com/2006/05/03/wicket-header-contributions-with-behaviors/
> --
> View this message in context: 
> http://www.nabble.com/header-contribution-ordering-t1768566.html#a4878920
> Sent from the Wicket - User forum at Nabble.com.
>
>
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to