• Post Reply Bookmark Topic Watch Topic
  • New Topic

Customizing h:messages

 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am creating a FacesMessage on the fly and I am displaying it in my jsf page with the <h:messages> component. The code in the backend that creates the FacesMessage is as follows:



And the jsf page that displays the error message looks like this:



My problem is, when the message is rendered on the page, I am given an ugly message like the following:

Error in field order_contact_email: Hello World!


How do I remove the "Error in field order_contact_email:" part so that it only displays "Hello World!"?

Thanks for your input!
 
Eugene Abarquez
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please disregard this thread. I already got it. The problem is not a JSF issue, but from the source of where I'm getting the message that I'm displaying itself.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!