How to refresh the ui after setAttribute on some rows?
805956Oct 20 2010 — edited Oct 20 2010I have a editable table and a commandButton.
In the actionListener, it call the VO's method to set an attribute value of the selected rows.
After that,I call getAttribute and print to console,it shows the value has been changed.
But the table stilll keeps the old value.(The table has been add to PartialTarget, and the table is actually refreshed)
I tried setting the "Refresh" attribute of the iterator to "always", but it didn't solve this problem.
code:
DCIteratorBinding deptIb =
ADFUtils.findIterator("DeptMaintainanceViewIterator");
BigDecimal value =
(BigDecimal)deptIb.getCurrentRow().getAttribute("Id");
EmployeeView vo =
(EmployeeView)ADFUtils.findIterator("EmployeeMaintainanceViewIterator").getViewObject();
OperationBinding op = ADFUtils.findOperation("multiSetDept");
if (this.isMultiRowMakeEmpty())
op.getParamsMap().put("deptId", null);
else
op.getParamsMap().put("deptId", value);
op.execute();
AdfFacesContext.getCurrentInstance().addPartialTarget(this.getTable());
I'm using Jdeveloper 11.1.1.3.PS2
Edited by: user9012978 on 2010-10-20 上午6:15