Code: Select all
getFlash().put("info", "info");
getFacesContext().getApplication().getNavigationHandler().
handleNavigation(getFacesContext(), null,
"/pages/info/info.xhtml?faces-redirect=true");
Code: Select all
public Flash getFlash() {
// return getFacesContext().getExternalContext().getFlash();
return FacesContext.getCurrentInstance().getExternalContext().getFlash();
}
<h:outputText value="#{flash.info}"/>
The 2nd page should display the flash content by theory, but it is not happening!?