• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Adding error message to FacesContext from action method  RSS feed

 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed! removed <redirect /> from navigation rule

Regards,
Joshua
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!