I'am using Primefaces to make my app a little bit more beautiful. I noticed that p:commandButton
and h:commandButton
don't work the same way.
The p:commandButton
calls the method and nothing else hapens. The h:commandButton
calls the method and returns a navigation.
I have got trouble with redirecting after pressing the login button when using p:commandButton
. How to deal with that?
I do have an update parameter:
<p:commandButton value="Login" action="#{login.login}" type="submit" update="msgs" />