For more information on the XML file format see

http://java.sun.com/j2se/1.5.0/docs/api/java/util/Properties.html#loadFromXML(java.io.InputStream)
and
http://java.sun.com/dtd/properties.dtd

Specifying string resources in XML -- though being a little bit more verbose -- has the advantage that you can more easily use special characters like German umlauts without resorting to native2ascii.

Regards,
Arvid

Helmut Swaczinna wrote:
The XML file is just an alternative format for specifying properties.
tobago.properties.xml: <properties> <entry key="javax.faces.component.UIInput.REQUIRED">Pflichtfeld nicht ausgefüllt.</entry> <entry key="javax.faces.component.UIInput.REQUIRED_detail">Bitte geben Sie in das Feld "{0}" einen Wert ein.</entry>
...
 </properties>
It should work also with the standard file format. Regards
Helmut
    ----- Original Message -----
    *From:* Madan Narra <mailto:[EMAIL PROTECTED]>
    *To:* MyFaces Discussion <mailto:[email protected]>
    *Sent:* Wednesday, May 23, 2007 5:47 PM
    *Subject:* Re: [ Tobago ] Help Regarding custom message for
    Conversion Errors

    Hi Helmut,
Can you please send me the sample for the <entry> for specifing
    the error messages...
I was confused how can i specify the error messages in the xml file... Regards,
    Madan N

Reply via email to