【发布时间】:2013-04-07 01:30:16
【问题描述】:
这个想法是根据customer combobox 上的选定值级联来自store combobox 的值。这是一个代码sn-p:
客户组合框:
<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。我想知道发生了什么。
谢谢!
【问题讨论】:
-
同时,如果有用户使用IE,我会让他们打开兼容模式。但我认为没有人敢这样做。
标签: internet-explorer web richfaces ajax4jsf rerender