0 Replies Latest reply on May 7, 2010 9:42 PM by Akhbar Falafel

    h:commandLink vs. h:commandButton behavior difference?

    Akhbar Falafel Newbie

      In my index.xhtml page I have a standard login box.  My index.page.xml page has the following navigation declaration:



           <navigation from-action="#{identity.login}">
                <rule if="#{identity.loggedIn}">
                     <redirect view-id="/home.xhtml" />
                </rule>
           </navigation>





      However, I've noticed a difference in behavior when I use h:commandLink to call identity.login() when compared to h:commandButton.  It seems that if I use h:commandLink to call the action, my login is processed but the redirect never occurs.  If I use h:commandButton, the redirect occurs as expected.


      Can anyone explain this behavior?  Is there anything I can do to duplicate the h:commandButton behavior when using h:commandLink?  Thanks in advance for any advice you can give!


      SN