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.

[1675 byte] By [nsqsmilea] at [2007-11-27 11:17:21]
# 1

Hi,

I has find the problem,but don't know how to do.

when clicked selectMultipuleButton,the page has not rendered,so,getAllUsepowerFooter() not run.

I put "submit(); " or "this.form.submit();" into selectMultipuleButtonOnClick, but no response.

Also,I put "submit(); " or "this.form.submit();" into the system functions selectGroupRows() ,no response.

Thanks.

Smile.

nsqsmilea at 2007-7-29 14:24:26 > top of Java-index,Development Tools,Java Tools...