Thanks! On Wed, Mar 20, 2013 at 12:58 PM, Martin Grigorov <[email protected]> wrote: > Hi Thies, > > Check > https://github.com/martin-g/blogs/commit/d5a248a3a3d5369c9cdc66604eba384428e9d0a0 > > By using custom IHeaderResponse you can promote any kind of HeaderItem. > > > On Wed, Mar 20, 2013 at 1:06 PM, Thies Edeling <[email protected]> wrote: > >> Hello, >> >> Using Wicket 6.5.0, how can I change the order on how Wicket renders >> the <head> section. I have an AbstractBasePage which every page >> extends, in this page I have: >> >> <wicket:head> >> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" >> /> >> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> >> </wicket:head> >> >> Some panels on the page add stuff to the head using an >> IHeaderContributor however they're put before the <meta tags defined >> in the wicket:head.. Result: >> >> <head> >> <link rel="stylesheet" href="../../css/menu.css" type="text/css" >> media="screen"/> >> >> <script type="text/javascript" >> >> src="../wicket/resource/org.apache.wicket.resource.JQueryResourceReference/jquery >> /jquery-ver-1362480357000.js"></script> >> <script type="text/javascript" >> >> src="../wicket/resource/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/res/js/wicket-event-jquery-ver-1362480357000.js" >> </script> >> ... etc... >> >> <link rel="stylesheet" type="text/css" >> >> href="../wicket/resource/net.rrm.ehour.ui.timesheet.panel.OverviewPanel/css/overview-ver-1363710395000.css" >> /> >> >> <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; >> IE=EDGE" /> >> </head> >> >> Unfortunately, IE8 requires the X-UA-Compatible meta tag to be the >> first in the head section, otherwise it doesn't respect it. How can I >> have this <meta tag defined in wicket:head rendered as the first child >> in the head section? Thanks! >> >> gr, >> Thies >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com <http://jweekend.com/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
