Search code examples
javajsfjava-ee-6icefaces

IceFaces ace:datatable: Need a selectall / select none buttons


I'm having a hell of a time adding a "select all" button to an icefaces datatable. I tried the following:

<h:commandButton
    value="Select All"
    actionListener="#{managedBeanMB.stateMap.setAllSelected(true)}" />
<h:commandButton
    value="Select None"
    actionListener="#{managedBeanMB.stateMap.setAllSelected(false)}" />

At best, this is inconsistent and unreliable. It also modifies the backing bean before the user submits the form.

the IceFaces javascript API doesn't seem to be any help either, as it only has a "clearSelection()" call, and I can't get that to work anyway.

Any help or ideas will be voted up... thanks!


Solution

  • We disabled paging... this seems to improve the buggy nature of IceFaces.