Display Message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kailashchandra
    New Member
    • Sep 2008
    • 5

    Display Message

    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.
    Code:
    public void uname_validate(FacesContext context, UIComponent component, Object value)
    {
    	if(true)
            {
    		throw new ValidatorException(new FacesMessage("Hello");
    	}
    }
    Thanks a lot for answer.
    Last edited by JosAH; Sep 27 '08, 08:12 AM. Reason: fixed the [code] ... [/code] tags
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

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

    kind regards,

    Jos

    Comment

    Working...