【问题标题】:A4J reRender not working on IE9 [Working on IE8]A4J reRender 在 IE9 上不起作用 [在 IE8 上工作]
【发布时间】: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


【解决方案1】:

RichFaces 3.x 不支持 IE9。有关详细信息,请参阅此答案: https://stackoverflow.com/a/7326359/854386

【讨论】:

  • 您在另一个主题中的回答非常直截了当。所以 reRender 不是罪魁祸首。谢谢安德烈!
猜你喜欢
  • 2012-08-28
  • 2015-08-01
  • 2012-02-18
  • 1970-01-01
  • 2014-04-11
  • 1970-01-01
  • 2013-10-23
  • 2013-03-16
  • 1970-01-01
相关资源
最近更新 更多