簡體   English   中英

JSF - RichFaces - IE9重新渲染失敗

[英]JSF - RichFaces - IE9 re render failure

我正在使用RichFaces 4.1.0,mojarra 2.0.2和apache tomcat 6.0.32運行Web應用程序。 我的應用程序在除IE9之外的所有不同瀏覽器中運行良好。 它停止在IE 9中工作,並且不會生成任何javascript錯誤或tomcat日志。 每當a4j重新渲染操作發生時它都會失敗。 由於設計約束,我無法使用meta標簽在兼容模式下設置IE9。

下面是我的代碼和web.xml:

<h:body>
<h:form>
    <rich:tabPanel switchType="client">
        <rich:tab header="Overview"> 
            <span>Total Number of Applications</span>
        </rich:tab>
        <rich:tab header="Options" onheaderclick="refreshOptions();" >
            <h:outputText value="Logging Level:" />
            <rich:select id="optionsLogLevel" 
                         value="#{optionsBean.logLevel}" 
                         required="true" 
                         requiredMessage="Logging Level is required">
                <f:selectItems value="#{optionsBean.logLevelsList}" />
            </rich:select>
        </rich:tab>
    </rich:tabPanel>
    <a4j:jsFunction name="refreshOptions"
                action="#{optionsBean.refreshOptions}"
                render="optionsLogLevel" execute="@this" />
</h:form>

web.xml中

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" 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_2_5.xsd">

<servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>*.jsf</url-pattern>
</servlet-mapping>
<context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Production</param-value>
</context-param>
<context-param>
    <param-name>com.sun.faces.enableEarlyMissingResourceLibraryDetection</param-name>
    <param-value>true</param-value>
</context-param>
<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<listener>
    <listener-class>com.mitel.bpi.webadmin.model.BPIWebAdminContextListener</listener-class>
</listener>

您可能會遇到JAVASERVERFACES-2063 ,由於jsf.js中的瀏覽器檢測錯誤,它會破壞IE9中的ajax通信。

升級到Mojarra> = 2.1.7可能會解決您的問題。 升級RichFaces時,4.1.0.Final現在很長。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM