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