Haven't tested it but something like this will probably do the trick:

@AfterRender
    private void afterRender(MarkupWriter writer) {
Element foundIEMode = writer.getDocument().find("html/head/meta[@http-equiv='X-UA-Compatible']");
        Element head = writer.getDocument().find("html/head");
        if(foundIEMode != null) {
            foundIEMode.moveToTop(head);
        }
    }

Cheers,
Joost

On 18/01/11 9:24 AM, Angelo C. wrote:
Hi,

after upgrading, my app has problem with IE8 all the time, I need to put
this as the first entry in the head section:

  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

but T5.2.4 always has scripts inserted first:

<  script
src="/tapestry5-hotel-booking/assets/1.2-SNAPSHOT/stack/en/core.js"...

any approach to force that meta tag to be the first? Thanks,

Angelo




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to