JSF refresh current document
If you ever wanted to refresh the current document to reflect new information...below is the method that you will need...
public void RefreshCurrentDocument() { FacesContext context = FacesContext.getCurrentInstance(); String currentView = context.getViewRoot().getViewId(); ViewHandler vh = context.getApplication().getViewHandler(); UIViewRoot x = vh.createView(context, currentView); context.setViewRoot(x); }
Good Luck... Read more...