0 Replies Latest reply on Feb 4, 2009 11:18 AM by Karthic Prabhu Balasamy

    Faces messages not displayed on Login page

    Karthic Prabhu Balasamy Newbie
      <page view-id="/login.xhtml">
         
              <navigation action="#{identity.login}">
                  <rule if="#{identity.loggedIn}">
                      <redirect view-id="/dashboard/index.xhtml"/>
                  </rule>              
              </navigation>

                <navigation from-action="#{identity.login}">
                  <rule if="#{not identity.loggedIn}">                                     
                      <redirect view-id="/login.xhtml">
                              <message>Page redirected to LOGIN when LOGIN failed</message>
                          </redirect>
                  </rule>
              </navigation>
             
          </page>

      How to redirect the page itself when not logged in.? Faces messages are not displayed and it shows 'messges is queued'.



      INFO: WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
      sourceId=null[severity=(INFO 0), summary=(Login failed), detail=(Login failed)]
      sourceId=null[severity=(INFO 0), summary=(Page redirected to LOGIN when LOGIN failed), detail=(Page redirected to LOGIN
      when LOGIN failed)]
      sourceId=null[severity=(INFO 0), summary=(Invalid Username/Password), detail=(Invalid Username/Password)]