Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

select/unselect all checkbox

1102964Jul 12 2016 — edited Jul 14 2016

I have a af:table which has first column as checkbox. and the column header is a checkbox for SelectAll/UnselectAll.

<af:column id="rh1" width="20px" rowHeader="true" >

                        <f:facet name="header">

                                <af:selectBooleanCheckbox id="selectAllCheckbox"

                                                  autoSubmit="true"

                                                  valueChangeListener="#{opcNotifyBlackoutsView.selectUnselectAll}"/>

                        </f:facet>

                        <af:selectBooleanCheckbox id="rowSelectCheckbox" value="#{opcNotifyBlackoutsView.blackoutNotifyEventsTable.selectedRowKeys.contained}"

                                                  autoSubmit="true"

                                                  valueChangeListener="#{opcNotifyBlackoutsView.updateEventSelect}"/>

                      

</af:column>

Now when i click on selectAll checkbox, all the row checkboxes get selected and when I deselect the SelectAll checkbox all the row checkboxes get unselected. What i need is once i click on selectAll checkbox and all row checboxes get selected, on unselecting one of the row checkboxes, the selectAll checkbox should get unselected.

Thanks,

Gayatri

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2016
Added on Jul 12 2016
7 comments
1,734 views