資源簡介
jsf中richfaces的jar包及源文件等jsf中richfaces的jar包及源文件等jsf中richfaces的jar包及源文件等

代碼片段和文件信息
package?test;
import?java.util.Iterator;
import?java.util.Vector;
import?org.richfaces.component.UIDataTable;
import?org.ajax4jsf.component.html.HtmlAjaxRepeat;
public?class?Bean?{
private?String?caption;
private?Vector?people?=?new?Vector();
private?UIDataTable?table;
//private?Integer?curRow?=?new?Integer(-2);
private?int?curRow?=?-2;
private?Vector?reps?=?new?Vector();
HtmlAjaxRepeat?repeat;
public?Bean(){
caption?=?“person?list“;
add();
reps.add(“00001“);
reps.add(“00002“);
reps.add(“00003“);
}
public?String?getCaption()?{
return?caption;
}
public?void?setCaption(String?caption)?{
this.caption?=?caption;
}
public?Vector?getPeople()?{
return?people;
}
public?void?setPeople(Vector?people)?{
this.people?=?people;
}
public?UIDataTable?getTable()?{
return?table;
}
public?void?setTable(UIDataTable?table)?{
this.table?=?table;
}
public?int?getCurRow()?{
return?curRow;
}
public?void?setCurRow(int?curRow)?{
this.curRow?=?curRow;
}
public?Vector?getReps()?{
return?reps;
}
public?HtmlAjaxRepeat?getRepeat()?{
return?repeat;
}
public?void?setRepeat(HtmlAjaxRepeat?repeat)?{
this.repeat?=?repeat;
}
public?void?save(){
for(Iterator?ite?=?people.iterator();ite.hasNext();){
Person?p?=?ite.next();
System.out.println(“=============“+p.getName()+“?has?“+p.getAge());
}
}
public?void?del(){
System.out.println(“cur?row?is?“+curRow);
/*
if((curRow.intValue())?>=?0){
people.removeElementAt((curRow.intValue()));
}
*/
if((curRow)?>=?0){
people.removeElementAt((curRow));
}
}
public?void?add(){
people.add(new?Person(“abc““m“20“qinghe“));
people.add(new?Person(“def““f“30“yunnan“));
people.add(new?Person(“ghi““m“25“tangshan“));
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2007-10-08?15:34??myweb\
?????文件?????????767??2007-10-08?15:42??myweb\.classpath
?????目錄???????????0??2007-10-08?15:34??myweb\.me
?????目錄???????????0??2007-10-08?15:34??myweb\.me
?????目錄???????????0??2007-10-08?15:34??myweb\.me
?????文件?????????192??2007-09-30?23:43??myweb\.me
?????文件????????1060??2007-10-08?15:42??myweb\.project
?????目錄???????????0??2007-10-08?15:34??myweb\.settings\
?????文件?????????329??2007-09-08?09:57??myweb\.settings\org.eclipse.jdt.core.prefs
?????文件?????????358??2007-09-08?09:57??myweb\.settings\org.eclipse.jst.common.project.facet.core.prefs
?????文件?????????389??2007-09-08?09:57??myweb\.settings\org.eclipse.wst.common.component
?????文件?????????298??2007-09-08?09:57??myweb\.settings\org.eclipse.wst.common.project.facet.core.xm
?????目錄???????????0??2007-11-07?14:24??myweb\build\
?????文件????????1761??2007-10-08?15:51??myweb\build\build.xm
?????目錄???????????0??2007-11-07?14:37??myweb\build\classes\
?????目錄???????????0??2007-11-05?14:43??myweb\src\
?????文件?????????594??2007-11-05?15:08??myweb\src\myweb.dia
?????目錄???????????0??2007-10-08?15:34??myweb\src\test\
?????文件????????1852??2007-10-17?17:27??myweb\src\test\Bean.java
?????文件?????????802??2007-10-01?00:17??myweb\src\test\Person.java
?????目錄???????????0??2007-10-08?15:34??myweb\WebContent\
?????文件??????????81??2007-11-05?15:21??myweb\WebContent\index.jsp
?????目錄???????????0??2007-10-08?15:34??myweb\WebContent\me
?????文件??????????39??2007-09-08?09:57??myweb\WebContent\me
?????目錄???????????0??2007-10-17?17:12??myweb\WebContent\pages\
?????文件????????2294??2007-11-07?14:22??myweb\WebContent\pages\testDataTable.jsp
?????文件????????2451??2007-10-17?17:27??myweb\WebContent\pages\testRepeat.jsp
?????目錄???????????0??2007-11-07?14:24??myweb\WebContent\WEB-INF\
?????文件?????????423??2007-09-30?23:43??myweb\WebContent\WEB-INF\faces-config.xm
?????文件????????1363??2007-10-01?00:32??myweb\WebContent\WEB-INF\web.xm
?????文件????????4138??2015-04-29?16:53??QQ圖片20150429165354.png
............此處省略0個文件信息
評論
共有 條評論