<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Custom error message</title><link>https://answers.axonivy.com/questions/2485/custom-error-message</link><description>&lt;p&gt;I am trying to make a custom message for the required input fields. The steps that I have done so far:
    -&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;created a .properties file with this  content inside it:     &lt;code&gt;javax.faces.component.UIInput.REQUIRED = {0}: Validation Error:  some custom message here.&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;modified the &lt;code&gt;faces-config.xml&lt;/code&gt; I have added there a tag message-bundle with content conf.MyMessage&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;And here is my project structure&lt;/li&gt;
&lt;li&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/Usssssssssntitled.png"&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I dont really know what is wrong and why my custom error message is not working, if you have any suggestions would be nice :)&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2485/custom-error-message" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 07 Mar 2017 14:56:27 -0500</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/2485/custom-error-message/2486</link><description>&lt;p&gt;We recommend to use the cms instead of property files. Look at: &lt;a href="http://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-files"&gt;http://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-files&lt;/a&gt; - for how to use cms in jsf views. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Tue, 07 Mar 2017 14:56:27 -0500</pubDate><guid>https://answers.axonivy.com/questions/2485/custom-error-message/2486</guid></item></channel></rss>