0

The idea is to cascade the values from the store combobox based on the selected value on the customer combobox. Here's a code snippet:

Customer 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>

Store 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>

This is actually working on IE8. However, on IE9, changing the value of Customer Combobox removes the Stores Combobox. I wonder what's happening.

Thanks SO!

Michael 'Maik' Ardan
  • 4,213
  • 9
  • 37
  • 60

1 Answers1

1

RichFaces 3.x does not support IE9. Refer to this answer for more details: https://stackoverflow.com/a/7326359/854386

Community
  • 1
  • 1
Andrey
  • 6,526
  • 3
  • 39
  • 58