<?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: Mandatory field in widget template in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316024#M3025</link>
    <description>&lt;P&gt;Using a standard h&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2012 12:05:02 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2012-01-31T12:05:02Z</dc:date>
    <item>
      <title>Mandatory field in widget template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316021#M3022</link>
      <description>&lt;P&gt;How can I make a field mandatory in a widget template?
On the creation layout I have a widget template mapped to a schema field.
In custom properties configuration I have added the property "required" with value "true".
At runtime, it shows the required star "*" in the creation form, but it doesn't validate that the value is not empty.
How can I validate it?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 18:45:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316021#M3022</guid>
      <dc:creator>hgonzalez_</dc:creator>
      <dc:date>2012-01-30T18:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in widget template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316022#M3023</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Just add required="#{widget.required}" to the JSF tag bound to the #{field} mapping.&lt;/P&gt;
&lt;P&gt;Here's an example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;h:selectOneMenu value="#{field}" id="#{widget.id}"
  required="#{widget.required}"&amp;gt;
  &amp;lt;f:selectItem itemValue="deleted" itemLabel="#{messages['label.no']}" /&amp;gt;
  &amp;lt;f:selectItem itemValue=" " itemLabel="#{messages['label.yes']}" /&amp;gt;
&amp;lt;/h:selectOneMenu&amp;gt;
&amp;lt;h:message styleClass="errorMessage" for="#{widget.id}"
  id="#{widget.id}_message" /&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jan 2012 18:59:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316022#M3023</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-01-30T18:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in widget template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316023#M3024</link>
      <description>&lt;P&gt;Thanks, it worked.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 11:47:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316023#M3024</guid>
      <dc:creator>hgonzalez_</dc:creator>
      <dc:date>2012-01-31T11:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in widget template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316024#M3025</link>
      <description>&lt;P&gt;Using a standard h&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2012 12:05:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316024#M3025</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2012-01-31T12:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Mandatory field in widget template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316025#M3026</link>
      <description>&lt;P&gt;Thanks it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2012 09:19:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/mandatory-field-in-widget-template/m-p/316025#M3026</guid>
      <dc:creator>hgonzalez_</dc:creator>
      <dc:date>2012-02-06T09:19:17Z</dc:date>
    </item>
  </channel>
</rss>

