For some reason, my function is not being called on submit. Can someone please point me in the right direction? I had getters and setters. I tried multiple ways but still no success
So on the back end, I have. public int prdcTypeSelection = 00;
public int getPrdcTypeSelection() {
return prdcTypeSelection;
}
public void setPrdcTypeSelection(int prdcTypeSelection) {
this.prdcTypeSelection = prdcTypeSelection;
}
public void effDateValueChange() {
LOGGER.info("calling effDtChangeListenerMass");
System.out.println("PrdTypeSelection"+getPrdcTypeSelection());
}
Front end
<ace:dialog widgetVar="effectDatePopup"
width="455" height="180"
header="Effective Date Popup"
draggable="false"
modal="true"
closable="true">
<h:form id="efForm">
<h:outputText value="Effective Date Popup TEXT "
styleClass="blBlkText" />
<h:outputText value="#{paDefAdministrativeDataTableViewBean.paDefAdministrative.defaultEffDate}" style="width:55px;display:block;">
<f:convertDateTime pattern="MM/dd/yyyy"/>
</h:outputText>
<h:outputText value="Product Type "/>
<h:selectOneMenu value="#{paDefAdministrativeDataTableViewBean.prdcTypeSelection}">
<f:selectItem itemValue="00" itemLabel="All" />
<f:selectItem itemValue="03" itemLabel="03" />
<f:selectItem itemValue="04" itemLabel="04" />
<f:selectItem itemValue="07" itemLabel="07" />
</h:selectOneMenu>
<h:panelGrid style="margin-left: auto; margin-right: auto; text-align: left;" width="100">
<h:commandButton id="submit" action="#{paDefAdministrativeDataTableViewBean.effDateValueChange}" value="Submit"/>
</h:panelGrid>
<h:panelGrid width="100%" style="text-align: right; top:20px;"> <h:commandButton value="Cancel" onclick="effectDatePopup.hide();"/> </h:panelGrid>
</h:form>
</ace:dialog>