Question

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!

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top