File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes checkAll Multiple checkbox in datatable IceFaces Components. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "checkAll Multiple checkbox in datatable IceFaces Components." Watch "checkAll Multiple checkbox in datatable IceFaces Components." New topic

checkAll Multiple checkbox in datatable IceFaces Components.

samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
Hello everybody,

I have a datable which contain multiple lines gotten from database, in the header of the datable i have a checkbox

<ice:dataTable rows="10" id="inventoryList"
value="#{Bordereau.listFiche}" var="item"

.....I have many columns and the last one contains

<f:facet name="header">
<ice:selectBooleanCheckbox id="selectAll" binding="#{ModifierDM.selectAllCheckbox}" valueChangeListener="#{ModifierDM.selectAll}" partialSubmit="true"/>
<ice:selectBooleanCheckbox id="select" binding="#{ModifierDM.selectCheckbox}" />


The purpose is to be able to check all checkboxes if i check the header's one.

But nothing happen !

Here is my class

package com.atos.him.beanManager;

import java.util.List;

import javax.faces.component.UISelectBoolean;
import javax.faces.event.PhaseId;
import javax.faces.event.ValueChangeEvent;

import org.springframework.context.ApplicationContext;

import com.atos.him.entity.DossierMedical;
import com.atos.him.entity.Fiche;
import com.icesoft.faces.component.ext.HtmlDataTable;
import com.icesoft.faces.component.ext.HtmlSelectBooleanCheckbox;

public class ModifierDMBean {

private DossierMedicalService dossierMedicalService;
private FicheService ficheService;
private HtmlDataTable inventoryList;
private Fiche ficheSelectione;
private UISelectBoolean selectAllCheckbox;
private UISelectBoolean selectCheckbox;

private boolean selected;

public boolean isSelected() {
return selected;

public void setSelected(boolean selected) {
this.selected = selected;

public UISelectBoolean getSelectAllCheckbox() {
return selectAllCheckbox;

public void setSelectAllCheckbox(UISelectBoolean selectAllCheckbox) {
this.selectAllCheckbox = selectAllCheckbox;

public UISelectBoolean getSelectCheckbox() {
return selectCheckbox;

public void setSelectCheckbox(UISelectBoolean selectCheckbox) {
this.selectCheckbox = selectCheckbox;

public Fiche getFicheSelectione() {
return ficheSelectione;

public void setFicheSelectione(Fiche ficheSelectione) {
this.ficheSelectione = ficheSelectione;

private List<Fiche> listFiche;

private List<DossierMedical> listDossier;

public ModifierDMBean() {
ApplicationContext appc = new ClassPathXmlApplicationContext(
setDossierMedicalService((DossierMedicalService) appc
setFicheService((FicheService) appc.getBean("ficheService"));

public DossierMedicalService getDossierMedicalService() {
return dossierMedicalService;

public void setDossierMedicalService(
DossierMedicalService dossierMedicalService) {
this.dossierMedicalService = dossierMedicalService;

public FicheService getFicheService() {
return ficheService;

public void setFicheService(FicheService ficheService) {
this.ficheService = ficheService;

public List<Fiche> getListFiche() {
return ficheService.getListfiche();

public void setListFiche(List<Fiche> listFiche) {
this.listFiche = listFiche;

public HtmlDataTable getInventoryList() {
return inventoryList;

public void setInventoryList(HtmlDataTable inventoryList) {
this.inventoryList = inventoryList;

public List<DossierMedical> getListDossier() {
return dossierMedicalService.getListDossierMedical();

public void setListDossier(List<DossierMedical> listDossier) {
this.listDossier = listDossier;

public String actTable() {
return "success";

public String updateDossier() {
return "success";


public void deleteDossier() {


public void selectAll(ValueChangeEvent e) {

if (!e.getPhaseId().equals(PhaseId.INVOKE_APPLICATION)) {


selected = true;


am waiting your answers

farm rubbit hihihihihihi, be aware !!
I agree. Here's the link:
subject: checkAll Multiple checkbox in datatable IceFaces Components.
It's not a secret anymore!