0
<p:selectBooleanCheckbox  label="#{lbl['lbl.pm.sr.all.states']}"
 value="#{suppliersReviewBackingBean.managedBean.allStates}">
 <p:ajax event="change" partialSubmit="true"
listener="#{suppliersReviewBackingBean.selectAllStates}"
update="stateListId" process="@this" />
</p:selectBooleanCheckbox>          
<p:selectManyMenu label="#{lbl['lbl.pm.sr.state']}"
id="stateListId"
value="#{suppliersReviewBackingBean.managedBean.suppliersReviewSearchBean.dropDownStatesIdList}"
style="width: 252px;margin-bottom: 5px;height:113px"
showCheckbox="true"
disabled="#{suppliersReviewBackingBean.managedBean.disabled}">
<f:selectItems var="finState" styleClass="ui-state-disabled"
value="#{suppliersReviewBackingBean.managedBean.suppliersReviewSearchBean.statesList}"
itemValue="#{finState.stateId}" itemLabel="#{finState.stateName}">
</f:selectItems>
</p:selectManyMenu>  

This is the UI screen without selection:

This is the UI screen after selection (I need exactly solution like this):

I want to check/uncheck multiple checkboxes of p:selectManyMenu checkboxes by based on single checkbox selection of P:selectBooleanCheckbox. I have tried many ways I didn't get exact solution.

6

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.