PrimeFaces p:commandButton doesn’t navigate

The

<p:commandButton id=”btn” value=”Register” ajax=”false” update=”panel” action=”#{userManager.createUser}” />

It does not navigate even I explicitly use

return “menus?faces-redirect=true”;

in the createUser method.

 

If I changed the p:commandButton to h:commandButton, it would work.

 

A better solution would be delete the update=”panel” part so that the UI part would feedback.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s