jsf 2 - JSF works in Firefox but blank page in Internet Explorer -


i have login.xhtml file displays fine in firefox when open same page in internet explorer blank page background color set css file. have tried ie8 , ie10. have not had trouble displaying jsf code in ie in of other jsf projects expect one. again, program functions in firefox. suggestions on how solve this?

here login.xhtml file:

<!doctype html> <html lang="en" xmlns="http://www.w3.org/1999/xhtml"                 xmlns:f="http://java.sun.com/jsf/core"                 xmlns:h="http://java.sun.com/jsf/html"                 xmlns:p="http://primefaces.org/ui"> <h:head>     <f:facet name="first">         <meta http-equiv="x-ua-compatible" content="ie=8" />     </f:facet>     <f:facet name="last">            <meta content="text/html; charset=utf-8" http-equiv="content-type"/>         <link type="text/css" rel="stylesheet" href="#{request.contextpath}/css/global.css" />         <title>annual review</title>     </f:facet>       </h:head>  <h:body> <p:layout fullpage="true" >  <p:layoutunit position="north" size="80" minsize="80" maxsize="80">                      <p:panelgrid styleclass="menubargrid" columns="2">         <p:graphicimage url="/css/needhamlogo2.bmp" />                       <h:outputtext value="annual compliance questionnaire" />                         </p:panelgrid> </p:layoutunit>  </p:layout> </h:body>  </html> 

and web.xml file:

<?xml version="1.0" encoding="utf-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemalocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="webapp_id" version="3.1">   <display-name>annualreview</display-name>   <welcome-file-list>     <welcome-file>login.xhtml</welcome-file>   </welcome-file-list>   <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>*.xhtml</url-pattern>   </servlet-mapping>   <context-param>     <description>state saving method: 'client' or 'server' (=default). see jsf specification 2.5.2</description>     <param-name>javax.faces.state_saving_method</param-name>     <param-value>client</param-value>   </context-param>   <context-param>     <param-name>javax.servlet.jsp.jstl.fmt.localizationcontext</param-name>     <param-value>resources.application</param-value>   </context-param>   <listener>     <listener-class>com.sun.faces.config.configurelistener</listener-class>   </listener>    <resource-ref>         <res-ref-name>jdbc/annual_review</res-ref-name>         <res-type>javax.sql.datasource</res-type>         <res-auth>container</res-auth>     </resource-ref> </web-app> 

i using jsf 2.2, primefaces 4.0 , glassfish 4.

i changed <servlet-mapping><url-pattern> in web.xml file *.xhtml /faces/* , page displays in ie.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -