Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

checkAll Multiple checkbox in datatable IceFaces Components.  RSS feed

samantha clarkson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!