permaculture playing cards*
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
 
jQuery in Action, 2nd edition
 
subject: primefaces command button is not working
 
Similar Threads
Updating a form in primefaces when a selection is made in the datatable
JSF 2.0 Login
problem with header height in primefaces tabview
Button action problem in richfaces
SelectListener for DataTable populated with ActionListener - infact if the initial size = 0