Digital Marketing

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 fix Google Apps Script: Script function not found: doGet

Creating sort index in MySQL

How to fix: df shows no file systems processed on Linux