Still problem with Flash?

UI Components for JSF
Post Reply
User avatar
MISS_DUKE
Posts: 273
Joined: 08 Aug 2010, 05:52

26 Oct 2010, 12:55

Backing bean code of the 1st page:

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();
    }
Markup of the 2nd page:
<h:outputText value="#{flash.info}"/>

The 2nd page should display the flash content by theory, but it is not happening!?
JSF implementation: Mojarra V2.1.7
JSF component library: Primefaces V3.1.1
Server: GlassFish Open Source Edition V3.1.1 (build 12)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 58 guests