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!

refresh binding iterator

RobalApr 25 2014 — edited May 7 2014

Dear experts.

I created EO from mySQL database then simple VO (SELECT Sounds.idresources,  Sounds.resourceaccess FROM  resources Sounds). On jspx site I attached VO as a table and created a button to INSERT a new row to mySQL table directly via preparedStatement command.

At the end of a method I executed:

        DCBindingContainer DCB = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();

        DCIteratorBinding iter = DCB.findIteratorBinding("VO_SOUNDS1Iterator");

        iter.getViewObject().clearCache();

        iter.executeQuery();

        iter.clearForRecreate();

        AdfFacesContext.getCurrentInstance().addPartialTarget(this.getT1());

to refresh table and see new inserted row. Unfortunately any changes are not visible. I have to navigate between other pages to see a correct result.

Any help would be appreciated.

Regards.

This post has been answered by Sireesha Pinninti-Oracle on May 5 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 4 2014
Added on Apr 25 2014
29 comments
12,297 views