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!

ADF page data refresh on button click.

VibzzSep 11 2013 — edited Sep 12 2013

Hi

I am working on a ADF application in which a table will be displayed to user and user can select any row and click on Submit. On Submit button click-it will call a pl/sql procedure and record should not be displayed on page. I am able to achieve this but its not refreshing page data automatically. I googled it and found below code.

protected void refreshPage() {
FacesContext fctx = FacesContext.getCurrentInstance();
String refreshpage = fctx.getViewRoot().getViewId();
ViewHandler ViewH = fctx.getApplication().getViewHandler();
UIViewRoot UIV = ViewH.createView(fctx, refreshpage);
UIV.setViewId(refreshpage);
fctx.setViewRoot(UIV);
}

Even after calling this code, I still need to go and remove data after ? in url only then it's refreshing the date.

Please suggest how to achieve this.

Thanks

Vibzz

This post has been answered by Frank Nimphius-Oracle on Sep 12 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2013
Added on Sep 11 2013
4 comments
1,902 views