checkbox,selectMultipuleButton and footer on a table?
Hi,All
I want to binding a page's property(Stat. a column value of all selected row) to the table's footer property.
Click the checkbox column is ok,but click the selectMultipuleButton it don't Stat.
The page's property code as follows
public String getAllUsepowerFooter(){
int allusepower = 0;
Integer currentpower;
RowKey rowkey;
String rowId;
int rowCount = this.getSessionBean1().getSelectedRowPayFeeBatch().size();
if (rowCount <= 0){
returnnull;
}
Iterator iter = this.getSessionBean1().getSelectedRowPayFeeBatch().iterator();
while (iter.hasNext()){
rowId = (String)iter.next();
rowkey = khdfSessionQueryFeeForBatch1.getRowKey(rowId);
currentpower = (Integer)khdfSessionQueryFeeForBatch1.getValue(khdfSessionQueryFeeForBatch1.getFieldKey("allusepower"),rowkey);
if (currentpower ==null){
currentpower = Integer.valueOf(0);
}
allusepower += currentpower.intValue();
}
return Integer.valueOf(allusepower).toString();
}
Thanks.
Smile.

