One quick way to do it is to use t:message and the attribute summaryFormat. You can take a look at the api at

http://myfaces.apache.org/tomahawk/tlddoc/index.html


From: "Anthony Hong" <[EMAIL PROTECTED]>
Reply-To: "MyFaces Discussion" <[email protected]>
To: "MyFaces Discussion" <[email protected]>
Subject: Can I customize Validation Error Message
Date: Mon, 6 Mar 2006 17:37:12 +0800

If I write this in this way,
<h:inputText id="txtDebtorLimit" size="20"
value="#DebtorController.currentDebtor.limit}"/>
 <h:message for="txtDebtorLimit" errorClass="error_message"/>

when error occured, it shows: txtCustomerID Value is required.

But I want to change txtCustomerID to support mulit language, it
should fetch value from resource bundle at first.
Can I do that?  Is that means I have to rewrite all validator in My
Faces implementation?

--

Anthony Hong


Reply via email to