Posts

Showing posts from November 28, 2018

PrimeFaces commandButton doesn't navigate or update

Image
up vote 38 down vote favorite 5 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" /> jsf jsf-2 primefaces share | improve this question edited Jan 9 '11 at 13:3