Re: Prioritize header items in html templates

2013-03-21 Thread Guillaume Smet
On Wed, Mar 20, 2013 at 11:48 PM, Guillaume Smet guillaume.s...@gmail.com wrote: On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov mgrigo...@apache.org wrote: Another user asked the same question so I added it to my demo app:

Re: Prioritize header items in html templates

2013-03-20 Thread Guillaume Smet
On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov mgrigo...@apache.org wrote: Another user asked the same question so I added it to my demo app: https://github.com/martin-g/blogs/commit/d5a248a3a3d5369c9cdc66604eba384428e9d0a0 Thanks Martin. Very helpful. -- Guillaume

Re: Prioritize header items in html templates

2013-03-19 Thread Martin Grigorov
Hi, I think this is not possible. wicket:head is just a convenience. The full power is in the Java based header contributors. On Tue, Mar 19, 2013 at 2:42 PM, Pointbreak pointbreak+wicketst...@ml1.netwrote: Is there a way (in Wicket 6) to prioritize items in wicket:head/head elements to get

Re: Prioritize header items in html templates

2013-03-19 Thread Pointbreak
The Java based header contributions are for css, and javascript mostly. Is there a practical way to get title, meta, and other 'special' tags appear before contributed headeritems in the head then? On Tue, Mar 19, 2013, at 13:48, Martin Grigorov wrote: Hi, I think this is not possible.

Re: Prioritize header items in html templates

2013-03-19 Thread Martin Grigorov
You can use StringHeaderItem.forString(meta ...) and wrap it in PriotityHeaderItem/FilterHeaderItem if needed. On Tue, Mar 19, 2013 at 3:03 PM, Pointbreak pointbreak+wicketst...@ml1.netwrote: The Java based header contributions are for css, and javascript mostly. Is there a practical way to

Re: Prioritize header items in html templates

2013-03-19 Thread Guillaume Smet
Hi, On Tue, Mar 19, 2013 at 2:07 PM, Martin Grigorov mgrigo...@apache.org wrote: You can use StringHeaderItem.forString(meta ...) and wrap it in PriotityHeaderItem/FilterHeaderItem if needed. We had the same question. Starting with Wicket 6, title and so on are lost in the resources lines. It

Re: Prioritize header items in html templates

2013-03-19 Thread Martin Grigorov
Actually I think it is possible to have them on the top. All entries from wicket:head are handled by PageHeaderItem at runtime. So you can use custom FilteringHeaderResponse that lifts PageHeaderItem to PriorityHeaderItem. On Tue, Mar 19, 2013 at 7:42 PM, Guillaume Smet