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