Connecting Tech Pros Worldwide Help | Site Map

Display Message

Newbie
 
Join Date: Sep 2008
Posts: 5
#1: Sep 27 '08
in the following code i am diplaying message through throwing an exception but i want to display that message without throwing excption in the JSF page.please help me.
Expand|Select|Wrap|Line Numbers
  1. public void uname_validate(FacesContext context, UIComponent component, Object value)
  2. {
  3.     if(true)
  4.         {
  5.         throw new ValidatorException(new FacesMessage("Hello");
  6.     }
  7. }
  8.  
Thanks a lot for answer.
JosAH's Avatar
Expert
 
Join Date: Mar 2007
Posts: 10,611
#2: Sep 27 '08

re: Display Message


Google is your friend; it found this tutorial which explains how
to display messages using JSF.

kind regards,

Jos
Reply