<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Does ivy5 support custom validator with annotation without registering in the faces-config.xml?</title><link>https://answers.axonivy.com/questions/1413/does-ivy5-support-custom-validator-with-annotation-without-registering-in-the-faces-config-xml</link><description>&lt;p&gt;Hello ivy-team, 
I've created a &lt;strong&gt;custom validator&lt;/strong&gt; with the @FacesValidator("ch.soreco.validator.EmailValidator") &lt;strong&gt;annotation&lt;/strong&gt; and  registerd the validator on a component using a validator tag and references the ID of the validator. Unfortunately i got a exception with unknown id if the page called. The validator only works if i registere it in the faces-config.xml. 
But for a &lt;strong&gt;custom converter&lt;/strong&gt; a registration in the faces-config is not necessary.&lt;/p&gt;
&lt;p&gt;Could you please explain it? Thank you!&lt;/p&gt;
&lt;p&gt;PS: I created both components and ran the tests with ivy designer 5.1.6&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1413/does-ivy5-support-custom-validator-with-annotation-without-registering-in-the-faces-config-xml" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 13 Aug 2015 06:24:14 -0400</lastBuildDate><item><title>Answer by trungdv</title><link>https://answers.axonivy.com/questions/1413/does-ivy5-support-custom-validator-with-annotation-without-registering-in-the-faces-config-xml/1439</link><description>&lt;p&gt;Can you change to use validation by backing bean? with this way we still can validate without registering on faces-config.xml&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Thu, 13 Aug 2015 06:24:14 -0400</pubDate><guid>https://answers.axonivy.com/questions/1413/does-ivy5-support-custom-validator-with-annotation-without-registering-in-the-faces-config-xml/1439</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/1413/does-ivy5-support-custom-validator-with-annotation-without-registering-in-the-faces-config-xml/1414</link><description>&lt;p&gt;The missing @FacesValidator support within ivy projects is already documented in soreconnect. See &lt;em&gt;#24770 Respect @FacesValidator annotation&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The good message is. It will be possible with 5.1.8!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;We enrich the JSF runtime configuration with faces converters within ivy projects (respectively it's ProjectModelVersion at runtime). It's a technical bridge so that the JSF application understands the ProcessModel / ProcessModelVersion layout of an Ivy application.&lt;/p&gt;
&lt;p&gt;Until 5.1.7 this bridge has only been implemented for converters and not for faces validators. So that's why you had to configure it in the global faces configuration manually.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Mon, 27 Jul 2015 11:23:51 -0400</pubDate><guid>https://answers.axonivy.com/questions/1413/does-ivy5-support-custom-validator-with-annotation-without-registering-in-the-faces-config-xml/1414</guid></item></channel></rss>