p:commandButton needs two clicks to fire action primefaces

I need to click my button twice to fire an action.

There seems to be a depency on the navigation of the site that’s calling this page.
If the previous navigation is done by a <p:button outcome=”next_page”> the button on “next_page” reacts on the first click.
Using <p:commandButton action=”next_page”> i need two clicks on “next_pages”‘s button…….

 

So the problem is the previous page. put “pageName?faces-redirect=true” in previous navigation would solve the problem.

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