0
我正在使用Ice faces 3,tomcat 7.0的JSF應用程序。我的問題是,應用程序在Firefox和Chrome上運行良好,但無法在Internet Explorer 9中打開。它不會拋出任何錯誤,只是頁面上白色的空白即ie。 這是XHTML頁面:Ice Faces 3頁面無法在ie中打開9
<?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 " ">
<!ENTITY auml "ä">
<!ENTITY ouml "ö">
<!ENTITY Ouml "Ö">
<!ENTITY uuml "ü">
<!ENTITY szlig "ß">
]>
<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中的任一項:包含語句
<ui:include src="head.xhtml"/>
<ui:include src="Filter.xhtml"/> or
<ui:include src="admin.xhtml"/>
上述和我除去所有的冰:形式塊的頁面獲取上即顯示9 .. 任何人都可以幫助我這個請?
瀏覽器特定的渲染錯誤不一定是由JSF引起的,而是由它生成的HTML/CSS/JS代碼引起的。您應該嘗試獲取生成的HTML/CSS/JS代碼的原始副本(在瀏覽器中打開頁面,右鍵單擊,查看源代碼,下載等),然後嘗試在問題仍然存在時儘可能多地刪除部分。最後重新發布並將問題重新定位到HTML/CSS專家(不一定是JSF專家)。一旦你得到了答案,回溯到JSF代碼的原因,並相應地修復它。 – BalusC