<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Validator with several methods in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323763#M10764</link>
    <description>&lt;P&gt;OK, thanks, I will try with the Seam component.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2011 15:03:15 GMT</pubDate>
    <dc:creator>hgonzalez_</dc:creator>
    <dc:date>2011-11-08T15:03:15Z</dc:date>
    <item>
      <title>Validator with several methods</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323761#M10762</link>
      <description>&lt;P&gt;I have a validator class with a validate() method, I added another method [validate2()] to validate another field.
How can I specify in Studio to call the second method?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 11:54:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323761#M10762</guid>
      <dc:creator>hgonzalez_</dc:creator>
      <dc:date>2011-11-08T11:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Validator with several methods</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323762#M10763</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;If you're using a standard JSF validator (e.g implementing the interface javax.faces.validator.Validator), it means you're declaring it as a validator to the JSF context and using its identifier to use it inside an input tag, using the "f:validator" tag for instance.
Other methods that you could add to this implementation will not be called as they're not part of the Validator interface.&lt;/P&gt;
&lt;P&gt;That's why it's much easier to use a standard Seam component, and declare any number of methods that will be used as validation methods, provided you follow the expected signature: "a validator method must be a public method that takes FacesContext, UIComponent, and Object parameters, with a return type of void".&lt;/P&gt;
&lt;P&gt;Once you've done that, in Studio you can reference this method in the "validator" property of the widget where you'd like the validation to occur, using a method binding like "#{mySeamComponent.validate2}" for instance.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 14:55:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323762#M10763</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2011-11-08T14:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validator with several methods</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323763#M10764</link>
      <description>&lt;P&gt;OK, thanks, I will try with the Seam component.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2011 15:03:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/validator-with-several-methods/m-p/323763#M10764</guid>
      <dc:creator>hgonzalez_</dc:creator>
      <dc:date>2011-11-08T15:03:15Z</dc:date>
    </item>
  </channel>
</rss>

