I see the ajaxstatus being activated. Also, when I add a listener to p:ajax, it's not being invoked.
The code that works is commented out. Am I doing something wrong here? Note that the p:commandButton works correctly.
Code: Select all
<ui:define name="nutritionDataStackContent">
<h:form prependId="false">
<h:panelGroup>
<h:panelGrid columns="2" style="width: 100%;">
<h:outputLabel for="foodGroupSelect" value="#{msgs.foodGroupTreeLabel}" style="font-weight: bold;"/>
<p:commandButton id="#{foodGroupController.clearAllId}"
value="#{msgs.clearAllButtonLabel}"
action="#{foodGroupController.clearAll()}"
style="align: right; font-size: .8em;"
update="foodGroupSelect foodDataTable"/>
</h:panelGrid>
<h:panelGrid id="foodSelectPanel">
<h:selectManyCheckbox id="foodGroupSelect"
layout="pageDirection"
value="#{foodGroupController.foodGroupSelections}" >
<f:selectItems id="foodGroupSelectItems" value="#{foodGroupController.allFoodGroups}"
var="group" itemLabel="#{group.foodGroupDescription}" itemValue="#{group.foodGroupCode}"/>
<!--<f:ajax render="foodGroupSelect"/>-->
<p:ajax update="foodGroupSelect"/>
</h:selectManyCheckbox>
</h:panelGrid>
</h:panelGroup>
</h:form>
</ui:define>