PrimeFaces commandButton doesn't navigate or update
Posted
by
Sven
on Stack Overflow
See other posts from Stack Overflow
or by Sven
Published on 2011-01-09T12:56:29Z
Indexed on
2011/01/09
17:53 UTC
Read the original article
Hit count: 221
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" />
© Stack Overflow or respective owner