3 Replies Latest reply on May 2, 2006 12:35 PM by Gavin King

    FacesMessages doesn't work with redirects from Get-Requests

    Andreas Berger Newbie

      Hello,

      I got an activation page (where a user can activate his account with a link from an email). this page is defined in pages.xml as followed:

      <pages>
       <page view-id="/activate.xhtml" action="#{activateCustomer.check}"/>
      </pages>


      The check method contains following code:

      Utils.addInfoMessage("Activation_AlreadyActivated");
      return "login";


      and the navigation-case in faces-config.xml is this one:

      <navigation-case>
       <from-outcome>login</from-outcome>
       <to-view-id>/login.xhtml</to-view-id>
       <redirect/>
       </navigation-case>


      The redirect works fine but the Stored Message is not diplayed!
      If I don't configure the redirect in faces-config.xml I get the Message.
      If I try the same thing with an action (invoked via post) the Message is displayed after the redirect.
      I'm not quite shure but I think the Message stored in conversation scope is cleared to early.
      Gavin can you have a look at this?

      Thanks
      - Andreas