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 <sva...@gmail.com> 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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org