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()); ...
随机推荐
- filebeat5与filebeat6配置index的差异
filebeat6配置index需要添加setup对应项,不然启动会报错. 6.0以后版本具体设置在filebeat.yml如下: setup.template.name: "myname- ...
- MySQL高级第五章——主从复制
一.复制的基本原理 slave会从master读取binlog(二进制日志文件)进行数据同步 步骤: 详细操作步骤请参见:http://www.cnblogs.com/luckcs/articles/ ...
- CodingLabs - MySQL索引背后的数据结构及算法原理
原文:CodingLabs - MySQL索引背后的数据结构及算法原理 首页 | 标签 | 关于我 | +订阅 | 微博 MySQL索引背后的数据结构及算法原理 作者 张洋 | 发布于 2011-10 ...
- appium -- 页面出现弹窗,关闭后,无法识别页面元素
1. 问题:如图所示:在修改手势密码的过程中,点击了返回按钮后,弹出该弹窗:点击继续设置后,就发现 driver.getPageSource()获取不到页面元素.在找了一圈无用的资料后,没有什么好的处 ...
- python处理dict转json,字符串中存在空格问题,导致url编码时,存在多余字符
在进行urlencode转换请求的参数时,一直多出一个空格,导致请求参数不正确,多了一个空格,解决方法一种是将dict中key-value键值对的value直接定义为字符串,另一种是value仍然为字 ...
- C 关键字 标示符 注释
一 关键字 1. 什么是关键字 关键字就是C语言提供的有特殊含义的符号 也叫做"保留字" C语言一共提供了32个关键字 这些关键字都被C语言赋予了特殊含义 auto double ...
- 【system.file】使用说明
对象:system.file 说明:提供一系列针对文件操作的方法. 注意:参数中的filePath 均为相对网站根目录路径 目录: 方法 返回 说明 system.file.exists(filePa ...
- JAVA基础学习之路(二)方法定义,重载,递归
一,方法的定义: package test; public class test1 { public static void main(String args[]) { int result = ad ...
- JavaScript 作用域链范例
函数在执行的过程中,先从自己内部找变量 如果找不到,再从创建当前函数所在的作用域去找,以此往上 注意找的是变量的当前状态 范例 例1 var a=1 function fn1() { function ...
- Laxcus大数据管理系统2.0(12)- 第十章 运行
第十章 运行 本章将介绍一些Laxcus集群基本运行.使用情况,结合图片和表格表示.地点是我们的大数据实验室,使用我们的实验集群.数据来自于我们的合作伙伴,软件平台混合了Windows和Fedora ...