I have an issue with missing ajax fired events. I have tried as much as I can to resolve this with searches, reading and experimentation.
Can someone assist in providing guidance?
Here is the form part:
<h:form>
...
<h:outputLabel>Chart Category:</h:outputLabel>
<h:selectOneMenu id="chartcategory" value="#{chartBean.category}" >
<f:ajax event="change" listener="#{chartBean.categoryChangedAJAX}"/>
<f:selectItems value="#{chartBean.categories}"/>
</h:selectOneMenu>
<h:outputLabel>Chart Type:</h:outputLabel>
<h:selectOneMenu value="#{chartBean.type}">
<f:selectItems id="charttypes" value="#{chartBean.types}"/>
</h:selectOneMenu>
...
</h:form>
Here is the code:
public void categoryChangedAJAX(final AjaxBehaviorEvent ajaxBehaviorEvent) {
System.out.println(" -------------------------------------- categoryChanged entered");
setTypes(chartCategoryAndTypes.getChartTypesForCategory( getCategory() ));
System.out.println("for Category: "+ getCategory() );
Arrays.stream(getTypes()).forEach(System.out::println);
setColumnVisibilities();
}