Code: Select all
<p:selectManyCheckbox value="#{categoriesBean.selectedBrands}" id="brand#{brand}">
<f:selectItems value="#{categoriesBean.brands}" var="brand" itemLabel="#{brand}" itemValue="#{brand}"/>
<p:ajax pdate="growlFilter" listener="#{categoriesBean.clickedBrands}" update=":tabHomeView:formProducts:dataTableProducts" /></p:selectManyCheckbox>
The JBoss log shows the one brand I selected "Topeak" and not the false for the other three brands in the 'selectManyCheckbox':
08:40:52,727 INFO [com.nohagl.ejb.CategoriesBean] (default task-32) ********** setSelectedBrands = 1
08:40:52,727 INFO [com.nohagl.ejb.CategoriesBean] (default task-32) >>>>> setSelectedBrands = 1
08:40:52,727 INFO [com.nohagl.ejb.CategoriesBean] (default task-32) >>>>> selectedBrands = Topeak
Can't see any settings listed in the documentation or in the Showcase example.
How do I get the 'selectManyCheckbox' to pass the complete (String) array?