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" />
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…