Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to refresh the ui after setAttribute on some rows?

805956Oct 20 2010 — edited Oct 20 2010
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 17 2010
Added on Oct 20 2010
6 comments
358 views