ValueChangeListener Pitfalls
I've run into a problem with my ValueChangeListener not firing. The same code works fine on a different page, so I'm assuming that the addition of different components is probably the root of my problem. This is what I have:
JSF
<h:form>
...
<h:panelGrid styleClass="popup" rendered="#{RFPdetail.laPopUp}" cellpadding="0" cellspacing="0">
<h:outputText value="Update Lead Agency" styleClass="popUpTitle"/>
<h:outputText value=" " styleClass="separator"/>
<h:panelGroup id="group_section">
<h:selectOneMenu id="custGroup" value="#{RFPdetail.laCustGroup}" onchange="submit()"
valueChangeListener="#{RFPdetail.custGroupChanged}"
styleClass="H2"
immediate="true">
<f:selectItem itemValue="" itemLabel="Select the customer's group"/>
<f:selectItems value="#{prDetail.custGroups}"/>
</h:selectOneMenu>
</h:panelGroup>
<h:panelGroup>
<h:selectOneListbox id="cust" value="#{RFPdetail.cust}" size="10"
rendered="#{not empty RFPdetail.laCustGroup}"
onchange="submit()"
immediate="true"
valueChangeListener="#{RFPdetail.custSelected}">
<f:selectItems value="#{RFPdetail.custs}"/>
</h:selectOneListbox>
</h:panelGroup>
<h:outputText value=" " styleClass="separator"/>
<h:panelGrid columns="2" cellpadding="10px">
<h:commandButton value="Save" action="#{RFPdetail.laSelected}"
disabled="#{empty RFPdetail.laCustGroup}"
immediate="true"/>
<h:commandButton value="Cancel" action="#{RFPdetail.closeLaPopup}" immediate="true"/>
</h:panelGrid>
<h:outputText value="fk_cust_contact_id: #{RFPdetail.cust}"/>
</h:panelGrid>
...
</h:form>
ValueChangeListener in RFPdetail
publicvoid custSelected(ValueChangeEvent vce){
FacesContext context = FacesContext.getCurrentInstance();
System.out.println("Please tell me it worked this time: "+ vce.getNewValue());
setCust((Integer) vce.getNewValue());
setLaSaveDisabled(false);
context.renderResponse();
}
What are some of the things that can conflict with an Value Change Listener?
Thanks

