<?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 Validate on multiple widget fields in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/validate-on-multiple-widget-fields/m-p/315330#M2331</link>
    <description>&lt;P&gt;Hi there.&lt;/P&gt;
&lt;P&gt;I'm writing a edit page for a document that requires a combination of two fields to be unique.
Is there a way of validating a component based on multiple widget fields in the layouts-contrib.xml file?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Feb 2012 07:40:25 GMT</pubDate>
    <dc:creator>lindsay_</dc:creator>
    <dc:date>2012-02-29T07:40:25Z</dc:date>
    <item>
      <title>Validate on multiple widget fields</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/validate-on-multiple-widget-fields/m-p/315330#M2331</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;
&lt;P&gt;I'm writing a edit page for a document that requires a combination of two fields to be unique.
Is there a way of validating a component based on multiple widget fields in the layouts-contrib.xml file?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Feb 2012 07:40:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/validate-on-multiple-widget-fields/m-p/315330#M2331</guid>
      <dc:creator>lindsay_</dc:creator>
      <dc:date>2012-02-29T07:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Validate on multiple widget fields</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/validate-on-multiple-widget-fields/m-p/315331#M2332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;You can take example on what's been done in the default user layout to perform password confirm validation.
The generic explanation on how to perform cross validation is here:
&lt;A href="http://blogs.nuxeo.com/dev/2009/03/cross-validation-with-jsf.html"&gt;http://blogs.nuxeo.com/dev/2009/03/cross-validation-with-jsf.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You can take example on the default nuxeo implementation (layout configuration, custom widget template, and java code of the validation method):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/OSGI-INF/layouts-contrib.xml"&gt;https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/OSGI-INF/layouts-contrib.xml&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/web/nuxeo.war/widgets/user_password_validation_widget_template.xhtml"&gt;https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/resources/web/nuxeo.war/widgets/user_password_validation_widget_template.xhtml&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/security/UserManagementActions.java"&gt;https://github.com/nuxeo/nuxeo-jsf/blob/release-5.5/nuxeo-platform-webapp-base/src/main/java/org/nuxeo/ecm/webapp/security/UserManagementActions.java&lt;/A&gt; (method validatePassword)&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 29 Feb 2012 12:15:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/validate-on-multiple-widget-fields/m-p/315331#M2332</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-02-29T12:15:15Z</dc:date>
    </item>
  </channel>
</rss>

