• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

primefaces command button is not working

 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 426
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad you work it out!
 
Ashok Pradhan
Ranch Hand
Posts: 180
Eclipse IDE Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mark
 
Anoop Narayanan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic