JSF – Add OmniFaces to your project

1. In pom.xml




2. You should put your xhtml pages under:


3. In your bean for example. Here strange is a xhtml file under the folder stated in point 2:

ExternalContext ec = FacesContext.getCurrentInstance().getExternalContext();
ec.redirect(ec.getRequestContextPath() + "strange");

Leave a Reply

Your email address will not be published. Required fields are marked *