Internet explorer A4J重新加载装置不适用于IE9[适用于IE8]
其思想是根据Internet explorer A4J重新加载装置不适用于IE9[适用于IE8],internet-explorer,web,richfaces,ajax4jsf,rerender,Internet Explorer,Web,Richfaces,Ajax4jsf,Rerender,其思想是根据客户组合框上的选定值,将存储组合框中的值级联。下面是一段代码片段: 客户组合框: <rich:comboBox directInputSuggestions="true" width="220" listStyle="text-align:left;" enableManualInput="false" id="customerList" value="#{gpsReport.selectedCustomer}" > <a4j:
客户组合框
上的选定值,将存储组合框
中的值级联。下面是一段代码片段:
客户组合框:
<rich:comboBox directInputSuggestions="true" width="220"
listStyle="text-align:left;" enableManualInput="false"
id="customerList" value="#{gpsReport.selectedCustomer}" >
<a4j:support actionListener="#{gpsReport.selectCustomer}"
event="onchange" reRender="storeList"
ajaxSingle="true" limitToList="true" />
<f:selectItems value="#{gpsReport.customers}" />
</rich:comboBox>
<rich:comboBox directInputSuggestions="true" width="220"
listStyle="text-align:left;" enableManualInput="false"
id="storeList" value="#{gpsReport.selectedStore}">
<a4j:support actionListener="#{gpsReport.selectStore}"
event="onchange"
ajaxSingle="true" limitToList="true" />
<f:selectItems value="#{gpsReport.stores}" />
</rich:comboBox>
存储组合框:
<rich:comboBox directInputSuggestions="true" width="220"
listStyle="text-align:left;" enableManualInput="false"
id="customerList" value="#{gpsReport.selectedCustomer}" >
<a4j:support actionListener="#{gpsReport.selectCustomer}"
event="onchange" reRender="storeList"
ajaxSingle="true" limitToList="true" />
<f:selectItems value="#{gpsReport.customers}" />
</rich:comboBox>
<rich:comboBox directInputSuggestions="true" width="220"
listStyle="text-align:left;" enableManualInput="false"
id="storeList" value="#{gpsReport.selectedStore}">
<a4j:support actionListener="#{gpsReport.selectStore}"
event="onchange"
ajaxSingle="true" limitToList="true" />
<f:selectItems value="#{gpsReport.stores}" />
</rich:comboBox>
这实际上是在IE8上工作。但是,在IE9上,更改Customer Combobox的值会删除Stores Combobox。我不知道发生了什么事。
非常感谢 RichFaces 3.x不支持IE9。有关更多详细信息,请参阅此答案:
目前,如果用户中有人使用IE,我会让他们打开兼容模式。但我认为没有人敢这样做。你在另一个话题上的回答非常直截了当。所以雷伦德不是罪魁祸首。谢谢你,安德烈!