ICE checkbox 用法
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"
binding="#{ModifierDM.inventoryList}">
.....I have many columns and the last one contains
<ice:column>
<f:facet name="header">
<ice:selectBooleanCheckbox id="selectAll" binding="#{ModifierDM.selectAllCheckbox}" valueChangeListener="#{ModifierDM.selectAll}" partialSubmit="true"/>
</f:facet>
<ice:selectBooleanCheckbox id="select" binding="#{ModifierDM.selectCheckbox}" />
</ice:column>
</ice:dataTable>
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 org.springframework.context.support.ClassPathXmlApplicationContext;
import com.atos.him.entity.DossierMedical;
import com.atos.him.entity.Fiche;
import com.atos.him.services.DossierMedicalService;
import com.atos.him.services.FicheService;
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;
}
@SuppressWarnings("unused")
private List<Fiche> listFiche;
@SuppressWarnings("unused")
private List<DossierMedical> listDossier;
public ModifierDMBean() {
ApplicationContext appc = new ClassPathXmlApplicationContext(
"applicationContext.xml");
setDossierMedicalService((DossierMedicalService) appc
.getBean("dossierMedicalService"));
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() {
ficheService.update(ficheSelectione);
return "success";
}
public void deleteDossier() {
ficheService.delete(ficheSelectione);
}
public void selectAll(ValueChangeEvent e) {
if (!e.getPhaseId().equals(PhaseId.INVOKE_APPLICATION)) {
e.setPhaseId(PhaseId.INVOKE_APPLICATION);
e.queue();
return;
}
selectCheckbox.setValue(true);
selected = true;
}
}
am waiting your answers 
https://coderanch.com/t/538212/java/checkAll-Multiple-checkbox-datatable-IceFaces
ICE checkbox 用法的更多相关文章
- JQuery select,checkbox用法 文本框只能输入数字
记录一下,方便查找 a.文本框只能输入数字 onkeyup='this.value=this.value.replace(/\D/gi,"")' eg: <input typ ...
- jquery checkbox用法汇总
来源:http://www.jb51.net/article/75717.htm 1.全选 ? 1 2 3 $("#btn1").click(function(){ $(" ...
- checkbox在vue中的用法小结
关于checkbox多选框是再常见不过的了,几乎很多地方都会用到,这两天在使用vue框架时需要用到checkbox多选功能,实在着实让我头疼,vue和原生checkbox用法不太一样,之前对于vue插 ...
- checkbox在vue中的用法总结
前言 关于checkbox多选框是再常见不过的了,几乎很多地方都会用到,这两天在使用vue框架时需要用到checkbox多选功能,实在着实让我头疼,vue和原生checkbox用法不太一样, 之前对于 ...
- vue项目使用element ui的Checkbox
最近使用到element ui的下拉多选框Checkbox Checkbox用法可参考与于 http://element.eleme.io/#/zh-CN/component/checkbox Che ...
- 流行的JavaScript库 ——jQuery
1.为了简化 JavaScript 的开发, 一些 JavsScript 库诞生了. JavaScript 库封装了很多预定义的对象和实用函数.能帮助使用者建立有高难度交互的 Web2.0 特性的富客 ...
- [转载]JavaEE学习篇之——JQuery技术详解
原文链接:http://blog.csdn.net/jiangwei0910410003/article/details/32102187 1.简介2.工具3.jQuery对象 1.DOM对象转化成j ...
- Python 中的 TK编程
可爱的 Python:Python 中的 TK编程 http://www.ibm.com/developerworks/cn/linux/sdk/python/charm-12/ python che ...
- EXTJS 常用控件的使用
重要按钮配置项 handler: renderTo: 取得控件及其值 var memo = form.findById('memo');//取得输入控件 alert(memo.getValue()); ...
随机推荐
- MapWinGIS介绍
MapWinGIS是一个不错的开源组件GIS项目,基于微软的COM思想编写,团队的开发人员主要来自爱荷华大学,而且开发团队中还有一位中国人.它的功能类似于AO(当然没有AO那么强大),其核心是一个名字 ...
- 全国各大城市Uber客服联系方式(电话、邮箱、微博)
滴快车单单2.5倍,注册地址:http://www.udache.com/ 如何注册Uber司机(全国版最新最详细注册流程)/月入2万/不用抢单:http://www.cnblogs.com/mfry ...
- ONTAK 2010 aut
Autostrady https://szkopul.edu.pl/problemset/problem/f2dSBM7JteWHqtmVejMWe1bW/site/?key=statement 题意 ...
- centos7 的防火墙命令调整了
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙.firewall:systemctl start firewalld.service#启动firewalls ...
- typescript语法
先来讲一讲TypeScript出现的背景 前端javascript的编程思想与后端java面向对象的编程思想有很大的不同,微软公司借鉴了coffeescript语言,继承了很多C#和java的编程思想 ...
- Manual install on Windows 7 with Apache and MySQL
These are instructions for installing on Windows 7 desktop (they may also be useful for a server ins ...
- LOB类型的学习、总结
LOB相关的概念 LOB类型: 将信息文件(十进制.二进制).图像甚至音频信息采用数据库作为保存载体时,就需要使用lob类型数据. 有两种Lob,Internal Lob和External Lob.I ...
- hdu1527取石子游戏(威佐夫博弈)
取石子游戏 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submi ...
- python基础之变量和简单数据类型
1.1 变量的命名和使用规范 变量名可以包含数字.字母.下划线,但是不能以数字开头. 变量名不能包含空格,可使用下划线来分割其中的单词. 不要将Python关键字和函数名用作变量名. 变量名应既简短又 ...
- 第四模块:网络编程进阶&数据库开发 第2章·MySQL数据库开发
01-MySQL开篇 02-MySQL简单介绍 03-不同平台下安装MySQL 04-Windows平台MySQL密码设置与破解 05-Linux平台MySQL密码设置与破解 06-Mac平台MySQ ...