File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
*
The moose likes JSF and the fly likes primefaces command button is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "primefaces command button is not working" Watch "primefaces command button is not working" New topic
Author

primefaces command button is not working

Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

<p:commandButton> of primefaces is not working but that same code working with <h:commandButton>
Login bean is present with all valid getter and setter with loginAction





Please help
Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Hi, have you check with firebug if there are any errors generated? Or can you check if any messages are being posted at the server?
From your post, I cannot really get the cause of the error.

I happily used Primefaces for my UI.


Sean Clark ---> I love this place!!!
Me ------> I definitely love this place!!!
Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

Now I came to know from PrimeFaces faq that

Why navigations do not work with PrimeFaces commandButton and commandLink?
PrimeFaces does not support forward based navigations within an ajax request, you need to do redirect instead or set ajax to false.


Then I just change the code


and it works fine..

Mark Reyes
Ranch Hand

Joined: Jul 09, 2007
Posts: 426
Glad you work it out!
Ashok Pradhan
Ranch Hand

Joined: Dec 17, 2007
Posts: 180

Thank you Mark
Anoop Narayanan
Greenhorn

Joined: Aug 01, 2014
Posts: 1
How is that happen? Could you please explain how this happen? I have faced the same issue and i tried <h:commandButton......./> and it worked fine and the tired <p:commandButton ....... ajax="false"/>
Now it is working ad i am using <p:commandButton.... ajax="false"/> is it good and secure. I am just a beginner. Please help me to explore more and use the better one

Thank you!!!
 
Don't get me started about those stupid light bulbs.
 
subject: primefaces command button is not working