似乎I.E. 8不允許更新頁面的組件。Primefaces兼容性I.E 8消息:意外調用方法或屬性訪問
我的例子:
<p:commandButton update="xxxxx"> dose not respond and stop all other request inside the page. what can i do?
的問題僅僅是是否存在什麼樣的primefaces的版本與 即8部作品好不好?
我的客戶有這個瀏覽器,並沒有可能讓他改變。
我越來越瘋狂的兼容性問題。我有什麼樣的解決方案?
Error:
Agente utente: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; CMDTDFJS; InfoPath.3; Tablet PC 2.0)
Timestamp: Tue, 21 Jan 2014 12:36:16 UTC
Message: Unexpected call to method or property access.
Line: 6050
Character: 5
Code: 0
URI: http://localhost:8080/caronteemir/javax.faces.resource/jquery/jquery.js.xhtml?ln=primefaces&v=4.0
頁面很簡單:並停止工作,當我按下按鈕
<p:commandButton value="submit" <-- this button is enabled by the other button in the page there are only 2 buttons
actionListener="#{shellManagerBean.excuteCommand()}" <--- dose not go inside this method why ?
這是整個網頁:
<!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:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui">
<h:head>
<h:outputStylesheet library="css" name="table-style.css" />
</h:head>
<h:body>
<script type="text/javascript">
$(document).load(function() {
onclick=jQuery('#form:hdnBtn').click();
})
</script>
<br/>
<div id="wrapper">
<h:form id="form">
<h:commandButton id="hdnBtn" onclick="#{shellManagerBean.resetFilters()}" style="display: none;"/>
<p:growl id="messages" closable="true" />
<p:dialog modal="true" widgetVar="blockPage" showHeader="false"
resizable="false" draggable="false" id="dial"
style="padding-top:0px; padding-bottom:0px; padding-right:0px; padding-left:2px;">
<div style="float: left">
<p:graphicImage value="/resources/images/ajax-loader.gif" />
</div>
<div style="float: left; line-height: 32px; margin-left: 10px;">
<h:outputText value="Loading..." />
</div>
</p:dialog>
<p:panel>
<h:form id="formh">
<p:outputLabel value="Host: "> </p:outputLabel>
<p:inputText value="#{shellManagerBean.host}" id="host"></p:inputText>
<p:outputLabel value=" "> </p:outputLabel>
<p:outputLabel value="Pwd: "> </p:outputLabel>
<h:inputSecret value="#{shellManagerBean.password}" id="password" label="password" />
<p:outputLabel value=" "> </p:outputLabel>
<p:commandButton value="connect" actionListener="#{shellManagerBean.connectToHost()}"
update=":form:formA:execbutton"
>
</p:commandButton>
<p:outputLabel value=" "> </p:outputLabel>
<p:growl id="messages" closable="true" autoUpdate="true"/>
</h:form>
</p:panel>
<p:panel id="shell" header="Command line shell" style="margin-bottom:10px;">
<h:form id="formA">
<p:inputTextarea id="resultCommand" autoResize="false" rows="35" cols="210" minQueryLength="10" value="#{shellManagerBean.textAreaValue}" />
<br/>
<p:commandButton value="submit"
id="execbutton"
update="resultCommand"
disabled="#{shellManagerBean.disableShell}"
process="@form"
actionListener="#{shellManagerBean.excuteCommand()}"
/>
<p:inputText value="#{shellManagerBean.shellCommand}" id="inputShell" label="Comando da eseguire" style="width:500px;"/>
</h:form>
</p:panel>
</h:form>
</div>
實踐中的peroblem是在任何頁面上:我按下一個按鈕這個按鈕必須更新其他的東西,但我沒有看到任何改變。該頁面不會進行局部刷新。我必須做什麼呢?
我也有這個問題,並且在兼容性方面花費的時間高於編碼...我的公司默認使用IE7,這更糟糕。我做的是說服用戶,Firefox/Chrome比IE更好更快。現在我的項目已經開始,我的生產增加了20%。哦,對於你的問題.....我認爲你應該和你的客戶談談,我不明白他爲什麼不想使用FF/Chrome,他也可以繼續使用IE來完成他的常見任務,也許一點點談話可以爲你節省時間/金錢...人們是靈活的。 – Pellizon
:(((((真的我想這夢想成真 –
您是否使用某種基於客戶端瀏覽器的CSS選擇器? – Pellizon