Maybe this 
https://nightlies.apache.org/wicket/guide/10.x/single.html#_header_contributors_positioning
can help in your case? :)

On Wed, 21 Aug 2024 at 02:41, Bas Gooren <[email protected]> wrote:
>
> Hi Stephane,
>
> The easiest way is to ensure you define the dependencies on the child items. 
> Then wicket will always render the parent (dependencies) before the children.
>
> Sounds to me like the reason for wanting things rendered in a certain order 
> is precisely that: dependencies.
>
> For Ajax rendered items it shouldn’t matter: any new JavaScript and css will 
> always be added and evaluated at the end.
>
> // Bas
>
> Verstuurd vanaf mijn iPhone
>
> > Op 20 aug 2024 om 19:49 heeft Stéphane V <[email protected]> het volgende 
> > geschreven:
> >
> > Hello,
> >
> > I'm looking for a way to sort header items like CSS or JavaScript files. 
> > I'm using renderHead() to add items to the head section, and I'm also 
> > utilizing inheritance for my pages. The order is perfect for the pages: the 
> > parent items come first, followed by the children items.
> >
> > However, the problem arises with panels. Their header items are created 
> > before the page's items, whereas I would like them to appear after the page 
> > items. Additionally, if I add a panel using Ajax, its header items are 
> > added at the end.
> >
> > How can I control the order of these items? Specifically, I want the page 
> > items to appear first, followed by the panel items.
> >
> > Thank you.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>


-- 
Best regards,
Maxim

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to