0 Replies Latest reply on Aug 16, 2012 12:56 AM by ark ark

    onchange event of combobox not fired

    ark ark Newbie

      I am using richfaces 3.3.3,  I have a view in which there are 2 comboboxes where the first comboboxes onchange should trigger the rerender of the second combobox.

      Usually if the user interacts fast with the first combobox just after its containing view has been conditionally rendered for the first time,  the onchange event does not fire thus the second combobox is not rerendered and hence not updated with required values.


      During the error condition in firebug the XML POST appears as:


      <meta name="Ajax-Update-Ids" content="" .....


      When there is no error (i.e when the onchange event is triggered) it appears as:

      <meta name="Ajax-Update-Ids" content="viewDataConsCheck:dataConsCheckForm:searchOwnerDCC"/> ......



      the code with comboboxes is as follows:



                                                                  <h:outputText id="labelSearchRepositoryDCC" value="Repository" />

                                                                  <rich:comboBox id="searchRepositoryDCC"



                                                                            directInputSuggestions="true" width="255px"


                                                                            <a4j:support event="onchange" reRender="searchOwnerDCC"





                                                                  <h:outputText id="labelSearchOwnerDCC" value="Owner" />


                                                                  <rich:comboBox id="searchOwnerDCC"



                                                                            directInputSuggestions="true" width="255px"

                                                                            enableManualInput="true" /> .....



      Has anyone faced a similar issue? I do not know why the POST request is incomplete.


      Basically the POST request generated when the combobox is clicked does not contain the  jsf.viewstate