Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6983579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:26:17+00:00 2026-05-27T18:26:17+00:00

I have a JSP page in a JSF application which uses A4J. I want

  • 0

I have a JSP page in a JSF application which uses A4J. I want to add a meta tag to put IE9 in compatibility mode. Unfortunately, this meta tag has to be the first tag in the head.

A4J automatically adds some tags to the head to load its stylesheets and javascript. This gets added before the IE9 meta tag.

I’ve searched the documentation for A4J, but couldn’t find anything about how to control these tags.

Does anybody know how i can insert the IE9 meta tag before the A4J tags?

Here is the first part of my JSP page:

<?xml version="1.0" encoding="utf-8"?>
<html xml:lang="nl" xmlns="http://www.w3.org/1999/xhtml"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tsi="http://components.traserv.com/jsf"
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
xmlns:t="http://myfaces.apache.org/tomahawk">
<jsp:output doctype-public="-//W3C//DTD XHTML 1.1//EN"
doctype-root-element="html"
doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
omit-xml-declaration="false" />
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
...

And here is the output:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
<head>
<link class="component" href="/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/basic_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_.f" rel="stylesheet" type="text/css" />
<link class="component" href="/a4j/s/3_3_0.GAorg/richfaces/renderkit/html/css/extended_classes.xcss/DATB/eAELXT5DOhSIAQ!sA18_.f" media="rich-extended-skinning" rel="stylesheet" type="text/css" />
<script src="/a4j/g/3_3_0.GAorg.ajax4jsf.javascript.AjaxScript.f" type="text/javascript"></script>
<script type="text/javascript">window.RICH_FACES_EXTENDED_SKINNING_ON=true;</script>
<script src="/a4j/g/3_3_0.GAorg/richfaces/renderkit/html/scripts/skinning.js.f" type="text/javascript"></script>
<meta content="IE=EmulateIE8" http-equiv="X-UA-Compatible"/>
<title></title>
....
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:26:18+00:00Added an answer on May 27, 2026 at 6:26 pm

    You could set X-UA-Compatible as an HTTP header instead of including it in the page as a meta tag. This works just as well, better in fact, in IE.

    How you do this in a JSF set up I’m afraid I don’t know.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have put fckeditor in jsp page. I want to get the value whatever
i am new to JSF. i have a problem with tag my .jsp page
I have a jsf 1.2 application where I need to show a page (jsp)
I have a JSF/RichFaces setup with an index.jsp which a4j:include s another piece of
I have J2EE web application which uses JSF framework. Now I am trying to
I have a JSP page, which accepts user strings in more than 23 languages.
I have a JSP page which accepts SQL queries, performs them then returns the
I have a jsp page which needs a java code. This java code inside
I have this seemingly-innocent code on my main JSF page: <a4j:outputPanel id=sidebarContainer> <a4j:include viewId=#{UserSession.currentSidebar}/>
I have this login.xhtml JSF page: <?xml version=1.0?> <jsp:root version=2.0 xmlns:jsp=http://java.sun.com/JSP/Page xmlns:f=http://java.sun.com/jsf/core xmlns:h=http://java.sun.com/jsf/html> <jsp:directive.page

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.