| Author |
Adding error message to FacesContext from action method
|
Joshua Antony
Ranch Hand
Joined: Jun 05, 2006
Posts: 254
|
|
I have a datatable containing values. On row click I display the description of that particular record. In this page there is an update button, when the user clicks update he is directed to different page having the same fields but with some of them editable and a save and cancel button If user enters some value and clicks save, and the update is successfull then the previous page needs to be shown with the success message. For this,I had added error message to FacesContext from update action method, but the message never got displayed. I guess this is due to the fact that different FacesContext instance gets created after action method is returned due to forward or sendRedirect. What is the workaround for this? Regards, Joshua
|
SCJP,SCWCD, Into ATG now!
|
 |
Joshua Antony
Ranch Hand
Joined: Jun 05, 2006
Posts: 254
|
|
Fixed! removed <redirect /> from navigation rule Regards, Joshua
|
 |
 |
|
|
subject: Adding error message to FacesContext from action method
|
|
|