Thursday, August 23, 2012

ADF - Refresh page programmatically

Some times when you develop your ADF application, you need to refresh programmatically a page. You can achieve this using the internal page ID in backing bean class usgin the following code:


ViewHandler vh = fctx.getApplication().getViewHandler();
String pageId = fctx.getViewRoot().getViewId();
UIViewRoot vr = vh.createView(fctx, pageId);
vr.setViewId(pageId);fctx.setViewRoot(vr)

No comments: