In my case i have to show the rich:comboBox 2, if i select ID Type in rich:comboBox 1.If i delete the selected value manually in the combox 1 means have to hide the comboBox2.My event="onchange" is not firing and onblur is also no working for me.How to do this ??Any help me to solve this problem.
My jsp page:
<tr>
<a4j:region selfRendered="true">
<h:panelGrid columns="5" border="0">
<h:outputText value="*" styleClass="mandatory_text" />
<h:outputText value="#{msg.search}"/>
<h:outputText value=":" />
<rich:comboBox id="cbxSearchField" value="#{existingCustomerBean.cbxSearchItem}"
selectFirstOnUpdate="false" listClass="myClass" required="true"
defaultLabel="#{msg.defaultLabel}" immediate="true">
<f:selectItems value="#{listBoxBean.selectSearchList}" />
<a4j:support event="onchange" actionListener="#{existingCustomerBean.selectSearchFieldActionListener}"
limitToList="true" ajaxSingle="true" eventsQueue="fooQueue"
reRender="panelIDType"/>
</rich:comboBox>
</h:panelGrid>
</a4j:region>
</tr>
<tr>
<a4j:outputPanel id="panelIDType">
<a4j:region rendered="#{existingCustomerBean.renderIDType == 'idtype'}">
<h:panelGrid id="panelGridIdType" columns="5" border="0" >
<h:outputText id="lblMandatory" value="*" styleClass="mandatory_text" />
<h:outputText id="lblIDType" value="#{msg.idType}"/>
<h:outputText id="lblColon" value=":" />
<rich:comboBox id="cbxIDTypeField" selectFirstOnUpdate="false" listClass="myClass"
defaultLabel="#{msg.defaultLabel}" required="true"
value="#{existingCustomerBean.cbxIDTypeItem}">
<f:selectItems value="#{listBoxBean.selectIDTypeList}" />
</rich:comboBox>
</h:panelGrid>
</a4j:region>
</a4j:outputPanel>
</tr>
My bean:
public String cbxSearchItem;
public String cbxIDTypeItem;
public String renderIDType;
public void selectSearchFieldActionListener(ActionEvent event)
{
log.debug("Calling selectSearchFieldActionListener");
if(this.getCbxSearchItem().toString()!=null)
{
log.debug("selectSearchFieldActionListener-selected Search:"+this.getCbxSearchItem().toString());
if(this.getCbxSearchItem().equals("ID Type"))
{
this.setRenderIDType("idtype");
log.debug(getRenderIDType());
}
else
{
this.setRenderIDType("Empty");
this.setRenderIDType(" ");
}
}
}

Thank you