JSF page redirection Example

To enable the page redirection, append faces-redirect=true at the end of the view name:

return FacesContext.getCurrentInstance().getViewRoot().getViewId() + "?faces-redirect=true";

<h:commandButton action="page1?faces-redirect=true" value="Page1" />

Popular posts from this blog

How to delete / clear queue of PowerMTA