0

我正在使用 Ice faces 3、tomcat 7.0 开发 JSF 应用程序。我的问题是该应用程序在 Firefox 和 chrome 上运行良好,但在 Internet Explorer 9 中无法打开。它不会抛出任何错误,只是页面在 ie 上显示为空白。这是 xhtml 页面:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[
     <!ENTITY nbsp   "&#160;">
     <!ENTITY auml   "&#228;">
     <!ENTITY ouml   "&#246;">
     <!ENTITY Ouml   "&#214;">
     <!ENTITY uuml   "&#252;"> 
     <!ENTITY szlig  "&#223;">
]>

<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:icecore="http://www.icefaces.org/icefaces/core"  xmlns:ace="http://www.icefaces.org/icefaces/components"   xmlns:ice="http://www.icesoft.com/icefaces/component" 
    >
    <h:head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>#{msgs.MyTitle}</title> 
    <link rel="stylesheet" href="./css/tas.css" />
    <ice:outputStyle href="./css/processbar.css" />
  <script type="text/javascript" defer="defer" language="javascript" src="posadmin.js" />
    </h:head>
    <h:body>
    <ice:panelGrid columns="1" cellspacing="0" cellpadding="0" border="0" width="100%">
        ***<ui:include src="head.xhtml"/>
                <ui:include src="Filter.xhtml"/>
        <ui:include src="admin.xhtml"/>*** 
        </ice:panelGrid>
     <ice:form id="error_form">
    <ui:include src="/popups/error.xhtml"></ui:include>
  </ice:form>
  <ice:form id="message_form">
    <ui:include src="/popups/message.xhtml"></ui:include>
  </ice:form>
    <ice:form id="close_form">
    <ui:include src="/popups/close.xhtml"></ui:include>
  </ice:form>
    </h:body>
</html>

当我删除任何一个 ui:include 语句时

<ui:include src="head.xhtml"/>
<ui:include src="Filter.xhtml"/> or
<ui:include src="admin.xhtml"/>

上面,我删除了所有的冰块:页面显示在 IE 9 上的表单块......谁能帮我解决这个问题????

4

1 回答 1

0

您必须在应用程序的类路径中添加 javax.faces.jar (mojarra)。这个 jar 带有 Icefaces Libs

试试这个。

于 2013-01-24T03:54:53.227 回答