0 Replies Latest reply on Jul 8, 2013 7:33 AM by Petro Verheles

    DOCTYPE is commented in IE 9

    Petro Verheles Newbie

      Hi, I have a very simple example just for testing based on Seam 2.3.1.CR1 running on Jboss 7.0.1.

      When I open the page in Firefox, DOCTYPE is rendered OK, but in IE 9 dev tools, it shows as commented.

      It may be the reason of more complex pages to run unproper.

       

      Here's the page code:

       

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

      <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"

          xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rich="http://richfaces.org/rich"

          xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:a4j="http://richfaces.org/a4j">

      <h:head></h:head>  

      <h:body>

           <h:outputText value="Hello, IE" />

      </h:body>

      </html>

       

      My web.xml:

       

      <?xml version="1.0"?>

      <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

          version="3.0">

       

          <!-- This parameter is needed to the bug https://issues.jboss.org/browse/JBSEAM-4809 -->

          <context-param>

              <param-name>resteasy.scan.resources</param-name>

              <param-value>false</param-value>

          </context-param>

       

          <!-- Seam -->

       

          <listener>

              <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>

          </listener>

       

          <servlet>

              <servlet-name>Seam Resource Servlet</servlet-name>

              <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>

          </servlet>

       

          <servlet-mapping>

              <servlet-name>Seam Resource Servlet</servlet-name>

              <url-pattern>/seam/resource/*</url-pattern>

          </servlet-mapping>

       

          <filter>

              <filter-name>Seam Filter</filter-name>

              <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>

          </filter>

       

          <filter-mapping>

              <filter-name>Seam Filter</filter-name>

              <url-pattern>/*</url-pattern>

          </filter-mapping>

       

          <!-- JSF -->

          <context-param>

              <param-name>javax.faces.DEFAULT_SUFFIX</param-name>

              <param-value>.xhtml</param-value>

          </context-param>

       

          <context-param>

              <param-name>org.richfaces.skin</param-name>

              <param-value>comcom</param-value>

          </context-param>

       

          <context-param>

              <param-name>org.richfaces.enableControlSkinning</param-name>

              <param-value>false</param-value>

          </context-param>

       

          <servlet>

              <servlet-name>Faces Servlet</servlet-name>

              <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>

              <load-on-startup>1</load-on-startup>

          </servlet>

       

          <servlet-mapping>

              <servlet-name>Faces Servlet</servlet-name>

              <url-pattern>*.seam</url-pattern>

          </servlet-mapping>

       

          <session-config>

              <session-timeout>10</session-timeout>

          </session-config>

       

          <context-param>

              <param-name>javax.faces.FULL_STATE_SAVING_VIEW_IDS</param-name>

              <param-value>/pro/membership/membership.xhtml,/pro/membership/groupinput.xhtml,/pro/membership/editGroup.xhtml,/pro/banner/ManageBanner.xhtml</param-value>

          </context-param>

         

          <!-- This is needed for proper work of rich:fileUpload https://community.jboss.org/thread/213635 -->

          <context-param>

                  <param-name>org.richfaces.fileUpload.maxRequestSize</param-name>

                  <param-value>2000000</param-value>

          </context-param>

          <context-param>

                  <param-name>org.richfaces.fileUpload.createTempFiles</param-name>

                  <param-value>false</param-value>

          </context-param>   

       

          <!-- URLREWRITE -->

          <filter>

              <filter-name>UrlRewriteFilter</filter-name>

              <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class>

              <init-param>

                  <param-name>logLevel</param-name>

                  <param-value>WARN</param-value>

              </init-param>

          </filter>

       

          <security-constraint>

              <display-name>Restrict raw XHTML Documents</display-name>

              <web-resource-collection>

                  <web-resource-name>XHTML</web-resource-name>

                  <url-pattern>*.xhtml</url-pattern>

              </web-resource-collection>

              <auth-constraint />

          </security-constraint>

       

          <login-config>

              <auth-method>BASIC</auth-method>

          </login-config>

      </web-app>