Title: Message
If you supply an <h:outputLabel> tag that refers to that field, then the content of that label will be used.
 
Also, you can experiment with showDetail="true" and showSummary="true"
 
- Brendan
-----Original Message-----
From: Jeffrey Porter [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 13, 2005 8:41 AM
To: MyFaces Discussion
Subject: Error message display...

What’s the best way to display an error message?

 

I have the tags…

 

<h:inputText id="supplierCode"      value="#{improvementRequest.supplierCode}"     maxlength="10" size="15" required="true" />

 

 

<t:messages id="messageList" styleClass="error" summaryFormat="{0} in {1}" />

 

 

When the form is submitted, but no text is entered into the supplierCode I get the message…

 

Validation Error in

 

What do I need to change to get a proper error message?

Or can someone point me in the direction of a good resource to read.

 

I’ve read (http://www.coreservlets.com/JSF-Tutorial/) but it does not cover error message handling.

 

Thanks.

Jeff

Reply via email to