You can use the below code to refresh ADF page programatically
FacesContext context = FacesContext.getCurrentInstance() String viewId = context.getViewRoot().getViewId() ViewHandler vh = context.getApplication().getViewHandler() UIViewRoot page = vh.createView(context, viewId); context.setViewRoot(page);
Import the following classes
import javax.faces.application.ViewHandler; import javax.faces.component.UIViewRoot; import javax.faces.context.FacesContext;
Thanks
Hello Mahmoud
ReplyDeleteThis code doesn't refresh the page at all but sets a viewId that is already set. You need to perform a redirect to refresh the full page as the method mentioned in this post
https://blogs.oracle.com/jdevotnharvest/entry/how_to_efficiently_redirect_an
Hello Mohammad,
DeleteThe code in post is worked well with me.
Does it not work with you?