Platform Explorer / CMF 1.8

Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.base--widgettypes

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layouts.webapp.base inside nuxeo-platform-webapp-base-5.4.2-HF05.jar

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="select_path_tree">
          <configuration>
            <sinceVersion>5.4.0</sinceVersion>
            <title>Path tree</title>
            <description>
              Widget allowing to select one or more values from a Tree constructed
              from the navigation tree.
    
              Set 'showAllDomains' property to true if you want to be able to select
              a path from an other domain than the current one.
            </description>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/select_path_tree_widget_template.xhtml
          </property>
        </widgetType>

    Widget allowing to select one or more values from a Tree constructed from the navigation tree. Set 'showAllDomains' property to true if you want to be able to select a path from an other domain than the current one.

  • <widgetType name="singleUserSuggestion">
          <configuration>
            <title>Single user/group suggestion</title>
            <sinceVersion>5.4.2</sinceVersion>
            <supportedModes>
              <mode>edit</mode>
              <mode>view</mode>
            </supportedModes>
            <fields>
              <list>true</list>
              <complex>false</complex>
              <supportedTypes>
                <type>string</type>
              </supportedTypes>
            </fields>
            <categories>
              <category>document</category>
            </categories>
            <properties>
              <layouts mode="view">
                <layout name="singleUserSuggestion_widget_type_properties_edit">
                  <rows>
                    <row>
                      <widget>userSuggestionSearchType</widget>
                    </row>
                    <row>
                      <widget>firstLabelField</widget>
                    </row>
                    <row>
                      <widget>secondLabelField</widget>
                    </row>
                    <row>
                      <widget>hideFirstLabel</widget>
                    </row>
                    <row>
                      <widget>hideSecondLabel</widget>
                    </row>
                    <row>
                      <widget>displayAction</widget>
                    </row>
                  </rows>
                  <widget name="userSuggestionSearchType" type="selectOneListbox">
                    <labels>
                      <label mode="any">Search type</label>
                    </labels>
                    <fields>
                      <field>userSuggestionSearchType</field>
                    </fields>
                    <selectOptions>
                      <option itemLabel="Users" itemValue="USER_TYPE"/>
                      <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                    </selectOptions>
                  </widget>
                  <widget name="firstLabelField" type="text">
                    <labels>
                      <label mode="any">First label field</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Field to use as the first label when displaying the selected
                        user. Default to 'firstName'.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>firstLabelField</field>
                    </fields>
                  </widget>
                  <widget name="secondLabelField" type="text">
                    <labels>
                      <label mode="any">Second label field</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Field to use as the second label when displaying the
                        selected user. Default to 'lastName'.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>secondLabelField</field>
                    </fields>
                  </widget>
                  <widget name="hideFirstLabel" type="checkbox">
                    <labels>
                      <label mode="any">Hide first label</label>
                    </labels>
                    <fields>
                      <field>hideFirstLabel</field>
                    </fields>
                  </widget>
                  <widget name="hideSecondLabel" type="checkbox">
                    <labels>
                      <label mode="any">Hide second label</label>
                    </labels>
                    <fields>
                      <field>hideSecondLabel</field>
                    </fields>
                  </widget>
                  <widget name="displayAction" type="selectOneListbox">
                    <labels>
                      <label mode="any">Display action</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The display action to use when rendering the user or group.
                        Can be 'nothing' to just display text only, 'view' to have a
                        link going to the user or group view, or 'edit' to have a
                        link going to the user or group edition. The 'edit' action
                        assumes the widget is used in the Users and Groups
                        management.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>displayAction</field>
                    </fields>
                    <selectOptions>
                      <option itemLabel="Nothing" itemValue="nothing"/>
                      <option itemLabel="View" itemValue="view"/>
                      <option itemLabel="Edit" itemValue="edit"/>
                    </selectOptions>
                  </widget>
                </layout>
              </layouts>
              <layouts mode="edit">
                <layout name="singleUserSuggestion_widget_type_properties_edit">
                  <rows>
                    <row>
                      <widget>required</widget>
                    </row>
                    <row>
                      <widget>userSuggestionSearchType</widget>
                    </row>
                    <row>
                      <widget>userSuggestionMaxSearchResults</widget>
                    </row>
                    <row>
                      <widget>minChars</widget>
                    </row>
                    <row>
                      <widget>frequency</widget>
                    </row>
                    <row>
                      <widget>requestDelay</widget>
                    </row>
                    <row>
                      <widget>width</widget>
                    </row>
                  </rows>
                  <widget name="required" type="checkbox">
                    <labels>
                      <label mode="any">Required</label>
                    </labels>
                    <fields>
                      <field>required</field>
                    </fields>
                  </widget>
                  <widget name="userSuggestionSearchType" type="selectOneListbox">
                    <labels>
                      <label mode="any">Search type</label>
                    </labels>
                    <fields>
                      <field>userSuggestionSearchType</field>
                    </fields>
                    <selectOptions>
                      <option itemLabel="Users and groups" itemValue="USER_GROUP_TYPE"/>
                      <option itemLabel="Users" itemValue="USER_TYPE"/>
                      <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                    </selectOptions>
                  </widget>
                  <widget name="userSuggestionMaxSearchResults" type="int">
                    <labels>
                      <label mode="any">Max search results</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Number of maximum search results in the suggestion (defaults
                        to 0 that means no limit).
                      </label>
                    </helpLabels>
                    <fields>
                      <field>userSuggestionMaxSearchResults</field>
                    </fields>
                  </widget>
                  <widget name="minChars" type="int">
                    <labels>
                      <label mode="any">Minimum characters</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The minimal number of characters to type for the suggestion
                        to be active. Defaults to 3.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>minChars</field>
                    </fields>
                  </widget>
                  <widget name="frequency" type="int">
                    <labels>
                      <label mode="any">Frequency</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Delay (in seconds) before activating the suggestion pop-up.
                        Default value is 0ms.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>frequency</field>
                    </fields>
                  </widget>
                  <widget name="requestDelay" type="int">
                    <labels>
                      <label mode="any">Request delay</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The requestDelay attribute specifies an amount of time in
                        milliseconds for the request to wait in the queue before
                        being sent to the server. If a similar request is added to
                        the queue before the delay is over, the original request is
                        removed from the queue and not sent.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>requestDelay</field>
                    </fields>
                  </widget>
                  <widget name="width" type="int">
                    <labels>
                      <label mode="any">Width</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">The suggestion width.</label>
                    </helpLabels>
                    <fields>
                      <field>width</field>
                    </fields>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/single_user_suggestion_widget_template.xhtml
          </property>
        </widgetType>
  • <widgetType name="multipleUsersSuggestion">
          <configuration>
            <title>Multiple users/groups suggestion</title>
            <sinceVersion>5.4.2</sinceVersion>
            <supportedModes>
              <mode>edit</mode>
              <mode>view</mode>
            </supportedModes>
            <fields>
              <list>true</list>
              <complex>false</complex>
              <supportedTypes>
                <type>string</type>
              </supportedTypes>
            </fields>
            <categories>
              <category>document</category>
            </categories>
            <properties>
              <layouts mode="edit">
                <layout name="multipleUsersSuggestion_widget_type_properties_edit">
                  <rows>
                    <row>
                      <widget>required</widget>
                    </row>
                    <row>
                      <widget>userSuggestionSearchType</widget>
                    </row>
                    <row>
                      <widget>userSuggestionMaxSearchResults</widget>
                    </row>
                    <row>
                      <widget>minChars</widget>
                    </row>
                    <row>
                      <widget>frequency</widget>
                    </row>
                    <row>
                      <widget>requestDelay</widget>
                    </row>
                    <row>
                      <widget>width</widget>
                    </row>
                  </rows>
                  <widget name="required" type="checkbox">
                    <labels>
                      <label mode="any">Required</label>
                    </labels>
                    <fields>
                      <field>required</field>
                    </fields>
                  </widget>
                  <widget name="userSuggestionSearchType" type="selectOneListbox">
                    <labels>
                      <label mode="any">Search type</label>
                    </labels>
                    <fields>
                      <field>userSuggestionSearchType</field>
                    </fields>
                    <selectOptions>
                      <option itemLabel="Users and groups" itemValue="USER_GROUP_TYPE"/>
                      <option itemLabel="Users" itemValue="USER_TYPE"/>
                      <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                    </selectOptions>
                  </widget>
                  <widget name="userSuggestionMaxSearchResults" type="int">
                    <labels>
                      <label mode="any">Max search results</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Number of maximum search results in the suggestion (defaults
                        to 0 that means no limit).
                      </label>
                    </helpLabels>
                    <fields>
                      <field>userSuggestionMaxSearchResults</field>
                    </fields>
                  </widget>
                  <widget name="minChars" type="int">
                    <labels>
                      <label mode="any">Minimum characters</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The minimal number of characters to type for the suggestion
                        to be active. Defaults to 3.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>minChars</field>
                    </fields>
                  </widget>
                  <widget name="frequency" type="int">
                    <labels>
                      <label mode="any">Frequency</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Delay (in seconds) before activating the suggestion pop-up.
                        Default value is 0ms.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>frequency</field>
                    </fields>
                  </widget>
                  <widget name="requestDelay" type="int">
                    <labels>
                      <label mode="any">Request delay</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The requestDelay attribute specifies an amount of time in
                        milliseconds for the request to wait in the queue before
                        being sent to the server. If a similar request is added to
                        the queue before the delay is over, the original request is
                        removed from the queue and not sent.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>requestDelay</field>
                    </fields>
                  </widget>
                  <widget name="width" type="int">
                    <labels>
                      <label mode="any">Width</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">The suggestion width.</label>
                    </helpLabels>
                    <fields>
                      <field>width</field>
                    </fields>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/user_suggestion_widget_template.xhtml
          </property>
        </widgetType>
  • <widgetType name="multiplePrefixedUsersSuggestion">
          <configuration>
            <title>Multiple prefixed users/groups suggestion</title>
            <sinceVersion>5.4.2</sinceVersion>
            <supportedModes>
              <mode>view</mode>
              <mode>edit</mode>
            </supportedModes>
            <fields>
              <list>true</list>
              <complex>false</complex>
              <supportedTypes>
                <type>string</type>
              </supportedTypes>
            </fields>
            <categories>
              <category>document</category>
            </categories>
            <properties>
              <layouts mode="edit">
                <layout name="multiplePrefixedUsersSuggestion_widget_type_properties_edit">
                  <rows>
                    <row>
                      <widget>required</widget>
                    </row>
                    <row>
                      <widget>userSuggestionSearchType</widget>
                    </row>
                    <row>
                      <widget>userSuggestionMaxSearchResults</widget>
                    </row>
                    <row>
                      <widget>minChars</widget>
                    </row>
                    <row>
                      <widget>frequency</widget>
                    </row>
                    <row>
                      <widget>requestDelay</widget>
                    </row>
                    <row>
                      <widget>width</widget>
                    </row>
                  </rows>
                  <widget name="required" type="checkbox">
                    <labels>
                      <label mode="any">Required</label>
                    </labels>
                    <fields>
                      <field>required</field>
                    </fields>
                  </widget>
                  <widget name="userSuggestionSearchType" type="selectOneListbox">
                    <labels>
                      <label mode="any">Search type</label>
                    </labels>
                    <fields>
                      <field>userSuggestionSearchType</field>
                    </fields>
                    <selectOptions>
                      <option itemLabel="Users and groups" itemValue="USER_GROUP_TYPE"/>
                      <option itemLabel="Users" itemValue="USER_TYPE"/>
                      <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                    </selectOptions>
                  </widget>
                  <widget name="userSuggestionMaxSearchResults" type="int">
                    <labels>
                      <label mode="any">Max search results</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Number of maximum search results in the suggestion (defaults
                        to 0 that means no limit).
                      </label>
                    </helpLabels>
                    <fields>
                      <field>userSuggestionMaxSearchResults</field>
                    </fields>
                  </widget>
                  <widget name="minChars" type="int">
                    <labels>
                      <label mode="any">Minimum characters</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The minimal number of characters to type for the suggestion
                        to be active. Defaults to 3.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>minChars</field>
                    </fields>
                  </widget>
                  <widget name="frequency" type="int">
                    <labels>
                      <label mode="any">Frequency</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Delay (in seconds) before activating the suggestion pop-up.
                        Default value is 0ms.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>frequency</field>
                    </fields>
                  </widget>
                  <widget name="requestDelay" type="int">
                    <labels>
                      <label mode="any">Request delay</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The requestDelay attribute specifies an amount of time in
                        milliseconds for the request to wait in the queue before
                        being sent to the server. If a similar request is added to
                        the queue before the delay is over, the original request is
                        removed from the queue and not sent.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>requestDelay</field>
                    </fields>
                  </widget>
                  <widget name="width" type="int">
                    <labels>
                      <label mode="any">Width</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">The suggestion width.</label>
                    </helpLabels>
                    <fields>
                      <field>width</field>
                    </fields>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/user_prefixed_suggestion_widget_template.xhtml
          </property>
        </widgetType>
  • <widgetType name="multipleDocumentsSuggestion">
          <configuration>
            <title>Multiple documents suggestion</title>
            <sinceVersion>5.4.2</sinceVersion>
            <supportedModes>
              <mode>view</mode>
              <mode>edit</mode>
            </supportedModes>
            <fields>
              <list>true</list>
              <complex>false</complex>
              <supportedTypes>
                <type>string</type>
              </supportedTypes>
            </fields>
            <categories>
              <category>document</category>
            </categories>
            <properties>
              <layouts mode="edit">
                <layout name="multipleDocumentsSuggestion_widget_type_properties_edit">
                  <rows>
                    <row>
                      <widget>required</widget>
                    </row>
                    <row>
                      <widget>pageProviderName</widget>
                    </row>
                    <row>
                      <widget>minChars</widget>
                    </row>
                    <row>
                      <widget>frequency</widget>
                    </row>
                    <row>
                      <widget>requestDelay</widget>
                    </row>
                    <row>
                      <widget>width</widget>
                    </row>
                  </rows>
                  <widget name="required" type="checkbox">
                    <labels>
                      <label mode="any">Required</label>
                    </labels>
                    <fields>
                      <field>required</field>
                    </fields>
                  </widget>
                  <widget name="pageProviderName" type="text">
                    <labels>
                      <label mode="any">Document page provider name</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The page provider that will be called to perform a search
                        for the suggestion. It must accept one parameter that will
                        be replaced by the suggestion input. If no name is defined,
                        a default page provider is used.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>pageProviderName</field>
                    </fields>
                  </widget>
                  <widget name="minChars" type="int">
                    <labels>
                      <label mode="any">Minimum characters</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The minimal number of characters to type for the suggestion
                        to be active. Defaults to 3.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>minChars</field>
                    </fields>
                  </widget>
                  <widget name="frequency" type="int">
                    <labels>
                      <label mode="any">Frequency</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        Delay (in seconds) before activating the suggestion pop-up.
                        Default value is 0ms.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>frequency</field>
                    </fields>
                  </widget>
                  <widget name="requestDelay" type="int">
                    <labels>
                      <label mode="any">Request delay</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The requestDelay attribute specifies an amount of time in
                        milliseconds for the request to wait in the queue before
                        being sent to the server. If a similar request is added to
                        the queue before the delay is over, the original request is
                        removed from the queue and not sent.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>requestDelay</field>
                    </fields>
                  </widget>
                  <widget name="width" type="int">
                    <labels>
                      <label mode="any">Width</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">The suggestion width.</label>
                    </helpLabels>
                    <fields>
                      <field>width</field>
                    </fields>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/multiple_document_suggestion_widget_template.xhtml
          </property>
        </widgetType>

XML Source

<extension point="widgettypes" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widgetType name="select_path_tree">
      <configuration>
        <sinceVersion>5.4.0</sinceVersion>
        <title>Path tree</title>
        <description>
          Widget allowing to select one or more values from a Tree constructed
          from the navigation tree.

          Set 'showAllDomains' property to true if you want to be able to select
          a path from an other domain than the current one.
        </description>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/select_path_tree_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="singleUserSuggestion">
      <configuration>
        <title>Single user/group suggestion</title>
        <sinceVersion>5.4.2</sinceVersion>
        <supportedModes>
          <mode>edit</mode>
          <mode>view</mode>
        </supportedModes>
        <fields>
          <list>true</list>
          <complex>false</complex>
          <supportedTypes>
            <type>string</type>
          </supportedTypes>
        </fields>
        <categories>
          <category>document</category>
        </categories>
        <properties>
          <layouts mode="view">
            <layout name="singleUserSuggestion_widget_type_properties_edit">
              <rows>
                <row>
                  <widget>userSuggestionSearchType</widget>
                </row>
                <row>
                  <widget>firstLabelField</widget>
                </row>
                <row>
                  <widget>secondLabelField</widget>
                </row>
                <row>
                  <widget>hideFirstLabel</widget>
                </row>
                <row>
                  <widget>hideSecondLabel</widget>
                </row>
                <row>
                  <widget>displayAction</widget>
                </row>
              </rows>
              <widget name="userSuggestionSearchType" type="selectOneListbox">
                <labels>
                  <label mode="any">Search type</label>
                </labels>
                <fields>
                  <field>userSuggestionSearchType</field>
                </fields>
                <selectOptions>
                  <option itemLabel="Users" itemValue="USER_TYPE"/>
                  <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                </selectOptions>
              </widget>
              <widget name="firstLabelField" type="text">
                <labels>
                  <label mode="any">First label field</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Field to use as the first label when displaying the selected
                    user. Default to 'firstName'.
                  </label>
                </helpLabels>
                <fields>
                  <field>firstLabelField</field>
                </fields>
              </widget>
              <widget name="secondLabelField" type="text">
                <labels>
                  <label mode="any">Second label field</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Field to use as the second label when displaying the
                    selected user. Default to 'lastName'.
                  </label>
                </helpLabels>
                <fields>
                  <field>secondLabelField</field>
                </fields>
              </widget>
              <widget name="hideFirstLabel" type="checkbox">
                <labels>
                  <label mode="any">Hide first label</label>
                </labels>
                <fields>
                  <field>hideFirstLabel</field>
                </fields>
              </widget>
              <widget name="hideSecondLabel" type="checkbox">
                <labels>
                  <label mode="any">Hide second label</label>
                </labels>
                <fields>
                  <field>hideSecondLabel</field>
                </fields>
              </widget>
              <widget name="displayAction" type="selectOneListbox">
                <labels>
                  <label mode="any">Display action</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The display action to use when rendering the user or group.
                    Can be 'nothing' to just display text only, 'view' to have a
                    link going to the user or group view, or 'edit' to have a
                    link going to the user or group edition. The 'edit' action
                    assumes the widget is used in the Users and Groups
                    management.
                  </label>
                </helpLabels>
                <fields>
                  <field>displayAction</field>
                </fields>
                <selectOptions>
                  <option itemLabel="Nothing" itemValue="nothing"/>
                  <option itemLabel="View" itemValue="view"/>
                  <option itemLabel="Edit" itemValue="edit"/>
                </selectOptions>
              </widget>
            </layout>
          </layouts>
          <layouts mode="edit">
            <layout name="singleUserSuggestion_widget_type_properties_edit">
              <rows>
                <row>
                  <widget>required</widget>
                </row>
                <row>
                  <widget>userSuggestionSearchType</widget>
                </row>
                <row>
                  <widget>userSuggestionMaxSearchResults</widget>
                </row>
                <row>
                  <widget>minChars</widget>
                </row>
                <row>
                  <widget>frequency</widget>
                </row>
                <row>
                  <widget>requestDelay</widget>
                </row>
                <row>
                  <widget>width</widget>
                </row>
              </rows>
              <widget name="required" type="checkbox">
                <labels>
                  <label mode="any">Required</label>
                </labels>
                <fields>
                  <field>required</field>
                </fields>
              </widget>
              <widget name="userSuggestionSearchType" type="selectOneListbox">
                <labels>
                  <label mode="any">Search type</label>
                </labels>
                <fields>
                  <field>userSuggestionSearchType</field>
                </fields>
                <selectOptions>
                  <option itemLabel="Users and groups" itemValue="USER_GROUP_TYPE"/>
                  <option itemLabel="Users" itemValue="USER_TYPE"/>
                  <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                </selectOptions>
              </widget>
              <widget name="userSuggestionMaxSearchResults" type="int">
                <labels>
                  <label mode="any">Max search results</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Number of maximum search results in the suggestion (defaults
                    to 0 that means no limit).
                  </label>
                </helpLabels>
                <fields>
                  <field>userSuggestionMaxSearchResults</field>
                </fields>
              </widget>
              <widget name="minChars" type="int">
                <labels>
                  <label mode="any">Minimum characters</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The minimal number of characters to type for the suggestion
                    to be active. Defaults to 3.
                  </label>
                </helpLabels>
                <fields>
                  <field>minChars</field>
                </fields>
              </widget>
              <widget name="frequency" type="int">
                <labels>
                  <label mode="any">Frequency</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Delay (in seconds) before activating the suggestion pop-up.
                    Default value is 0ms.
                  </label>
                </helpLabels>
                <fields>
                  <field>frequency</field>
                </fields>
              </widget>
              <widget name="requestDelay" type="int">
                <labels>
                  <label mode="any">Request delay</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The requestDelay attribute specifies an amount of time in
                    milliseconds for the request to wait in the queue before
                    being sent to the server. If a similar request is added to
                    the queue before the delay is over, the original request is
                    removed from the queue and not sent.
                  </label>
                </helpLabels>
                <fields>
                  <field>requestDelay</field>
                </fields>
              </widget>
              <widget name="width" type="int">
                <labels>
                  <label mode="any">Width</label>
                </labels>
                <helpLabels>
                  <label mode="any">The suggestion width.</label>
                </helpLabels>
                <fields>
                  <field>width</field>
                </fields>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/single_user_suggestion_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="multipleUsersSuggestion">
      <configuration>
        <title>Multiple users/groups suggestion</title>
        <sinceVersion>5.4.2</sinceVersion>
        <supportedModes>
          <mode>edit</mode>
          <mode>view</mode>
        </supportedModes>
        <fields>
          <list>true</list>
          <complex>false</complex>
          <supportedTypes>
            <type>string</type>
          </supportedTypes>
        </fields>
        <categories>
          <category>document</category>
        </categories>
        <properties>
          <layouts mode="edit">
            <layout name="multipleUsersSuggestion_widget_type_properties_edit">
              <rows>
                <row>
                  <widget>required</widget>
                </row>
                <row>
                  <widget>userSuggestionSearchType</widget>
                </row>
                <row>
                  <widget>userSuggestionMaxSearchResults</widget>
                </row>
                <row>
                  <widget>minChars</widget>
                </row>
                <row>
                  <widget>frequency</widget>
                </row>
                <row>
                  <widget>requestDelay</widget>
                </row>
                <row>
                  <widget>width</widget>
                </row>
              </rows>
              <widget name="required" type="checkbox">
                <labels>
                  <label mode="any">Required</label>
                </labels>
                <fields>
                  <field>required</field>
                </fields>
              </widget>
              <widget name="userSuggestionSearchType" type="selectOneListbox">
                <labels>
                  <label mode="any">Search type</label>
                </labels>
                <fields>
                  <field>userSuggestionSearchType</field>
                </fields>
                <selectOptions>
                  <option itemLabel="Users and groups" itemValue="USER_GROUP_TYPE"/>
                  <option itemLabel="Users" itemValue="USER_TYPE"/>
                  <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                </selectOptions>
              </widget>
              <widget name="userSuggestionMaxSearchResults" type="int">
                <labels>
                  <label mode="any">Max search results</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Number of maximum search results in the suggestion (defaults
                    to 0 that means no limit).
                  </label>
                </helpLabels>
                <fields>
                  <field>userSuggestionMaxSearchResults</field>
                </fields>
              </widget>
              <widget name="minChars" type="int">
                <labels>
                  <label mode="any">Minimum characters</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The minimal number of characters to type for the suggestion
                    to be active. Defaults to 3.
                  </label>
                </helpLabels>
                <fields>
                  <field>minChars</field>
                </fields>
              </widget>
              <widget name="frequency" type="int">
                <labels>
                  <label mode="any">Frequency</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Delay (in seconds) before activating the suggestion pop-up.
                    Default value is 0ms.
                  </label>
                </helpLabels>
                <fields>
                  <field>frequency</field>
                </fields>
              </widget>
              <widget name="requestDelay" type="int">
                <labels>
                  <label mode="any">Request delay</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The requestDelay attribute specifies an amount of time in
                    milliseconds for the request to wait in the queue before
                    being sent to the server. If a similar request is added to
                    the queue before the delay is over, the original request is
                    removed from the queue and not sent.
                  </label>
                </helpLabels>
                <fields>
                  <field>requestDelay</field>
                </fields>
              </widget>
              <widget name="width" type="int">
                <labels>
                  <label mode="any">Width</label>
                </labels>
                <helpLabels>
                  <label mode="any">The suggestion width.</label>
                </helpLabels>
                <fields>
                  <field>width</field>
                </fields>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/user_suggestion_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="multiplePrefixedUsersSuggestion">
      <configuration>
        <title>Multiple prefixed users/groups suggestion</title>
        <sinceVersion>5.4.2</sinceVersion>
        <supportedModes>
          <mode>view</mode>
          <mode>edit</mode>
        </supportedModes>
        <fields>
          <list>true</list>
          <complex>false</complex>
          <supportedTypes>
            <type>string</type>
          </supportedTypes>
        </fields>
        <categories>
          <category>document</category>
        </categories>
        <properties>
          <layouts mode="edit">
            <layout name="multiplePrefixedUsersSuggestion_widget_type_properties_edit">
              <rows>
                <row>
                  <widget>required</widget>
                </row>
                <row>
                  <widget>userSuggestionSearchType</widget>
                </row>
                <row>
                  <widget>userSuggestionMaxSearchResults</widget>
                </row>
                <row>
                  <widget>minChars</widget>
                </row>
                <row>
                  <widget>frequency</widget>
                </row>
                <row>
                  <widget>requestDelay</widget>
                </row>
                <row>
                  <widget>width</widget>
                </row>
              </rows>
              <widget name="required" type="checkbox">
                <labels>
                  <label mode="any">Required</label>
                </labels>
                <fields>
                  <field>required</field>
                </fields>
              </widget>
              <widget name="userSuggestionSearchType" type="selectOneListbox">
                <labels>
                  <label mode="any">Search type</label>
                </labels>
                <fields>
                  <field>userSuggestionSearchType</field>
                </fields>
                <selectOptions>
                  <option itemLabel="Users and groups" itemValue="USER_GROUP_TYPE"/>
                  <option itemLabel="Users" itemValue="USER_TYPE"/>
                  <option itemLabel="Groups" itemValue="GROUP_TYPE"/>
                </selectOptions>
              </widget>
              <widget name="userSuggestionMaxSearchResults" type="int">
                <labels>
                  <label mode="any">Max search results</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Number of maximum search results in the suggestion (defaults
                    to 0 that means no limit).
                  </label>
                </helpLabels>
                <fields>
                  <field>userSuggestionMaxSearchResults</field>
                </fields>
              </widget>
              <widget name="minChars" type="int">
                <labels>
                  <label mode="any">Minimum characters</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The minimal number of characters to type for the suggestion
                    to be active. Defaults to 3.
                  </label>
                </helpLabels>
                <fields>
                  <field>minChars</field>
                </fields>
              </widget>
              <widget name="frequency" type="int">
                <labels>
                  <label mode="any">Frequency</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Delay (in seconds) before activating the suggestion pop-up.
                    Default value is 0ms.
                  </label>
                </helpLabels>
                <fields>
                  <field>frequency</field>
                </fields>
              </widget>
              <widget name="requestDelay" type="int">
                <labels>
                  <label mode="any">Request delay</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The requestDelay attribute specifies an amount of time in
                    milliseconds for the request to wait in the queue before
                    being sent to the server. If a similar request is added to
                    the queue before the delay is over, the original request is
                    removed from the queue and not sent.
                  </label>
                </helpLabels>
                <fields>
                  <field>requestDelay</field>
                </fields>
              </widget>
              <widget name="width" type="int">
                <labels>
                  <label mode="any">Width</label>
                </labels>
                <helpLabels>
                  <label mode="any">The suggestion width.</label>
                </helpLabels>
                <fields>
                  <field>width</field>
                </fields>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/user_prefixed_suggestion_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="multipleDocumentsSuggestion">
      <configuration>
        <title>Multiple documents suggestion</title>
        <sinceVersion>5.4.2</sinceVersion>
        <supportedModes>
          <mode>view</mode>
          <mode>edit</mode>
        </supportedModes>
        <fields>
          <list>true</list>
          <complex>false</complex>
          <supportedTypes>
            <type>string</type>
          </supportedTypes>
        </fields>
        <categories>
          <category>document</category>
        </categories>
        <properties>
          <layouts mode="edit">
            <layout name="multipleDocumentsSuggestion_widget_type_properties_edit">
              <rows>
                <row>
                  <widget>required</widget>
                </row>
                <row>
                  <widget>pageProviderName</widget>
                </row>
                <row>
                  <widget>minChars</widget>
                </row>
                <row>
                  <widget>frequency</widget>
                </row>
                <row>
                  <widget>requestDelay</widget>
                </row>
                <row>
                  <widget>width</widget>
                </row>
              </rows>
              <widget name="required" type="checkbox">
                <labels>
                  <label mode="any">Required</label>
                </labels>
                <fields>
                  <field>required</field>
                </fields>
              </widget>
              <widget name="pageProviderName" type="text">
                <labels>
                  <label mode="any">Document page provider name</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The page provider that will be called to perform a search
                    for the suggestion. It must accept one parameter that will
                    be replaced by the suggestion input. If no name is defined,
                    a default page provider is used.
                  </label>
                </helpLabels>
                <fields>
                  <field>pageProviderName</field>
                </fields>
              </widget>
              <widget name="minChars" type="int">
                <labels>
                  <label mode="any">Minimum characters</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The minimal number of characters to type for the suggestion
                    to be active. Defaults to 3.
                  </label>
                </helpLabels>
                <fields>
                  <field>minChars</field>
                </fields>
              </widget>
              <widget name="frequency" type="int">
                <labels>
                  <label mode="any">Frequency</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    Delay (in seconds) before activating the suggestion pop-up.
                    Default value is 0ms.
                  </label>
                </helpLabels>
                <fields>
                  <field>frequency</field>
                </fields>
              </widget>
              <widget name="requestDelay" type="int">
                <labels>
                  <label mode="any">Request delay</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The requestDelay attribute specifies an amount of time in
                    milliseconds for the request to wait in the queue before
                    being sent to the server. If a similar request is added to
                    the queue before the delay is over, the original request is
                    removed from the queue and not sent.
                  </label>
                </helpLabels>
                <fields>
                  <field>requestDelay</field>
                </fields>
              </widget>
              <widget name="width" type="int">
                <labels>
                  <label mode="any">Width</label>
                </labels>
                <helpLabels>
                  <label mode="any">The suggestion width.</label>
                </helpLabels>
                <fields>
                  <field>width</field>
                </fields>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/multiple_document_suggestion_widget_template.xhtml
      </property>
    </widgetType>

  </extension>