Hi, There were questions in the mailing lists about how to control the order of header contributions. In Wicket 6 there are PriorityHeaderItems and org.apache.wicket.settings.IResourceSettings#getHeaderItemComparator() but still this requires some great gymnastics to achieve a goal like making sure that <meta> for charset is always at the very top of <head> content.
What do you think about the following suggestion: MyPage.html: <head> [some optional markup] <wicket:header-items/> [some more optional markup] </head> That is, <wicket:header-items/> acts as a placeholder, something like org.apache.wicket.markup.head.filter.HeaderResponseContainer, that is used to put all header contributions from Java or <wicket:head> in panels. This gives the developer the flexibility to put something that is at the top of the page's markup. While rendering Wicket will put all header items in the placeholder. And the developer can also add something that should always be at the bottom of <head> For backward compatibility, and sane default, if there is no <wicket:header-items/> then everything is like it is today. Example: <head> <meta chartset="UTF-8"/> <wicket:header-items/> <script src="my-monkey-patch-of-wicket-ajax.js"></script> </head> -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
