1 Reply Latest reply on Nov 9, 2010 9:18 AM by Ilya Shaikovsky

    rich:comboBox valueChangeListener is not firing in modelpanel???

    Siva P Master

      Hi all,

       

      I have a problem in my model panel page ,My combobox is not firing valuechangelistener???How to resolve this problem?

       

       

      <rich:comboBox id="cbxnewpaymethodField" value="#{editAccountInfoBean.cbxSubscriptionType}"

                  listClass="myClass" selectFirstOnUpdate="false" required="true" enableManualInput="false"

      defaultLabel="#{msg.defaultLabel}" directInputSuggestions="true" valueChangeListener="#    {editAccountInfoBean.optionSelectedComboBox}">

      <f:selectItems value="#{listBoxBean.selectSubscriptionTypeList}"/>

      <a4j:support event="onchange" limitToList="true" ajaxSingle="true" eventsQueue="fooQueue" id="ajaxSuppID"

      reRender="packEnterpriseID,packretailID,panelenter,panelretail">

          </a4j:support>

      </rich:comboBox>

       

       

      Bean:

       

       

       

      public void optionSelectedComboBox(ValueChangeEvent  event)

      {

      log.info("Calling into optionSelectedComboBox...");

      UIComboBox component = (UIComboBox)event.getComponent();

      log.info("1:"+component.getValue());

      log.info("2:"+component.getSubmittedValue().toString());

      log.info("3:"+component.getId());

            }

       

      In the top of the model panel i have <a4j:keepAlive  beanName = "editAccountInfoBean"/> but it is not firing why????

       

       

      <rich:comboBox id="cbxnewpaymethodField" value="#{editAccountInfoBean.cbxSubscriptionType}"
                  listClass="myClass" selectFirstOnUpdate="false" required="true" enableManualInput="false"
                     defaultLabel="#{msg.defaultLabel}" directInputSuggestions="true" valueChangeListener="#{editAccountInfoBean.optionSelectedComboBox}">
                           <f:selectItems value="#{listBoxBean.selectSubscriptionTypeList}"/>
                          <a4j:support event="onchange" limitToList="true" ajaxSingle="true" eventsQueue="fooQueue" id="ajaxSuppID"
      reRender="packEnterpriseID,packretailID,panelenter,panelretail">
                         </a4j:support>
                </rich:comboBox>