Platform Explorer / Nuxeo Platform 2021.24

Contribution org.nuxeo.ecm.platform.actions.widgettypes--widgettypes

This contribution is part of XML component org.nuxeo.ecm.platform.actions.widgettypes inside nuxeo-platform-actions-jsf-2021.24.3.jar /OSGI-INF/widgettypes-contrib.xml

Extension Point

Extension point widgettypes of component WebLayoutManager.

Registration Order

1
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widgetType name="actions">
          <configuration>
            <sinceVersion>5.6</sinceVersion>
            <title>Actions</title>
            <description>
              <p>This widget displays actions.</p>
              <p>
                It needs the list of actions as property "actions".
                <br/>
                Its bound value is used for actions with type "widget".
              </p>
            </description>
            <categories>
              <category>hidden</category>
            </categories>
            <fields>
              <defaultConfiguration>
                <field/>
              </defaultConfiguration>
            </fields>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <properties>
              <defaultValues mode="any">
                <property name="trackCurrentAction">true</property>
              </defaultValues>
              <layouts mode="any">
                <layout name="actions_widget_type_properties_any">
                  <rows>
                    <row>
                      <widget>actions</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actionsDisplay</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_overallDisplay</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_maxActionsNumber</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_styleClass</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_moreMenuLabel</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_addForm</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_useAjaxForm</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">ajaxReRender</widget>
                    </row>
                  </rows>
                  <widget name="actions" type="actions">
                    <labels>
                      <label mode="any">Actions</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The list of actions to display.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>actions</field>
                    </fields>
                    <widgetModes>
                      <mode value="edit_demo_preview">hidden</mode>
                    </widgetModes>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/actions/actions_widget_template.xhtml
          </property>
        </widgetType>
  • <widgetType name="action">
          <configuration>
            <sinceVersion>5.7</sinceVersion>
            <title>Action</title>
            <description>
              <p>This widget displays an action.</p>
              <p>
                It needs the action as property "action".
                <br/>
                Its bound value is used for actions with type "widget".
                <br/>
                It can add a form around its button to handle actions with type
                "fancybox" that would need a form in their opened fancybox content.
              </p>
            </description>
            <categories>
              <category>hidden</category>
            </categories>
            <fields>
              <defaultConfiguration>
                <field/>
              </defaultConfiguration>
            </fields>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <properties>
              <defaultValues mode="any">
                <property name="trackCurrentAction">true</property>
              </defaultValues>
              <layouts mode="any">
                <layout name="action_widget_type_properties_any">
                  <rows>
                    <row>
                      <widget>action</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actionsDisplay</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_styleClass</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_addForm</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_useAjaxForm</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">ajaxReRender</widget>
                    </row>
                  </rows>
                  <widget name="action" type="action">
                    <labels>
                      <label mode="any">Action</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The action to display.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>action</field>
                    </fields>
                    <widgetModes>
                      <mode value="edit_demo_preview">hidden</mode>
                    </widgetModes>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/actions/action_widget_template.xhtml
          </property>
        </widgetType>
  • <widgetType name="tabs">
          <configuration>
            <sinceVersion>5.7</sinceVersion>
            <title>Tabs</title>
            <description>
              <p>This widget displays tabs.</p>
              <p>
                It needs the list of actions as property "actions".
                <br/>
                Its bound value is used for actions with type "widget".
              </p>
            </description>
            <categories>
              <category>hidden</category>
            </categories>
            <fields>
              <defaultConfiguration>
                <field/>
              </defaultConfiguration>
            </fields>
            <supportedModes>
              <mode>view</mode>
            </supportedModes>
            <properties>
              <defaultValues mode="any">
                <property name="trackCurrentAction">false</property>
              </defaultValues>
              <layouts mode="any">
                <layout name="tabs_widget_type_properties_any">
                  <rows>
                    <row>
                      <widget>actions</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_addForm</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_useAjaxForm</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">ajaxReRender</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actionsDisplay</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">actions_styleClass</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">tabs_overallDisplay</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">tabs_link_view</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">tabs_link_pattern</widget>
                    </row>
                    <row>
                      <widget category="widgetTypeConf">tabs_hideSingleTab</widget>
                    </row>
                  </rows>
                  <widget name="actions" type="actions">
                    <labels>
                      <label mode="any">Actions</label>
                    </labels>
                    <helpLabels>
                      <label mode="any">
                        The list of actions to display.
                      </label>
                    </helpLabels>
                    <fields>
                      <field>actions</field>
                    </fields>
                    <widgetModes>
                      <mode value="edit_demo_preview">hidden</mode>
                    </widgetModes>
                  </widget>
                </layout>
              </layouts>
            </properties>
          </configuration>
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/actions/tabs_widget_template.xhtml
          </property>
        </widgetType>

XML Source

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

    <widgetType name="actions">
      <configuration>
        <sinceVersion>5.6</sinceVersion>
        <title>Actions</title>
        <description>
          <p>This widget displays actions.</p>
          <p>
            It needs the list of actions as property "actions".
            <br/>
            Its bound value is used for actions with type "widget".
          </p>
        </description>
        <categories>
          <category>hidden</category>
        </categories>
        <fields>
          <defaultConfiguration>
            <field/>
          </defaultConfiguration>
        </fields>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="trackCurrentAction">true</property>
          </defaultValues>
          <layouts mode="any">
            <layout name="actions_widget_type_properties_any">
              <rows>
                <row>
                  <widget>actions</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actionsDisplay</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_overallDisplay</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_maxActionsNumber</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_styleClass</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_moreMenuLabel</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_addForm</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_useAjaxForm</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">ajaxReRender</widget>
                </row>
              </rows>
              <widget name="actions" type="actions">
                <labels>
                  <label mode="any">Actions</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The list of actions to display.
                  </label>
                </helpLabels>
                <fields>
                  <field>actions</field>
                </fields>
                <widgetModes>
                  <mode value="edit_demo_preview">hidden</mode>
                </widgetModes>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/actions/actions_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="action">
      <configuration>
        <sinceVersion>5.7</sinceVersion>
        <title>Action</title>
        <description>
          <p>This widget displays an action.</p>
          <p>
            It needs the action as property "action".
            <br/>
            Its bound value is used for actions with type "widget".
            <br/>
            It can add a form around its button to handle actions with type
            "fancybox" that would need a form in their opened fancybox content.
          </p>
        </description>
        <categories>
          <category>hidden</category>
        </categories>
        <fields>
          <defaultConfiguration>
            <field/>
          </defaultConfiguration>
        </fields>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="trackCurrentAction">true</property>
          </defaultValues>
          <layouts mode="any">
            <layout name="action_widget_type_properties_any">
              <rows>
                <row>
                  <widget>action</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actionsDisplay</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_styleClass</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_addForm</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_useAjaxForm</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">ajaxReRender</widget>
                </row>
              </rows>
              <widget name="action" type="action">
                <labels>
                  <label mode="any">Action</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The action to display.
                  </label>
                </helpLabels>
                <fields>
                  <field>action</field>
                </fields>
                <widgetModes>
                  <mode value="edit_demo_preview">hidden</mode>
                </widgetModes>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/actions/action_widget_template.xhtml
      </property>
    </widgetType>

    <widgetType name="tabs">
      <configuration>
        <sinceVersion>5.7</sinceVersion>
        <title>Tabs</title>
        <description>
          <p>This widget displays tabs.</p>
          <p>
            It needs the list of actions as property "actions".
            <br/>
            Its bound value is used for actions with type "widget".
          </p>
        </description>
        <categories>
          <category>hidden</category>
        </categories>
        <fields>
          <defaultConfiguration>
            <field/>
          </defaultConfiguration>
        </fields>
        <supportedModes>
          <mode>view</mode>
        </supportedModes>
        <properties>
          <defaultValues mode="any">
            <property name="trackCurrentAction">false</property>
          </defaultValues>
          <layouts mode="any">
            <layout name="tabs_widget_type_properties_any">
              <rows>
                <row>
                  <widget>actions</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_addForm</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_useAjaxForm</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">ajaxReRender</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actionsDisplay</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">actions_styleClass</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">tabs_overallDisplay</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">tabs_link_view</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">tabs_link_pattern</widget>
                </row>
                <row>
                  <widget category="widgetTypeConf">tabs_hideSingleTab</widget>
                </row>
              </rows>
              <widget name="actions" type="actions">
                <labels>
                  <label mode="any">Actions</label>
                </labels>
                <helpLabels>
                  <label mode="any">
                    The list of actions to display.
                  </label>
                </helpLabels>
                <fields>
                  <field>actions</field>
                </fields>
                <widgetModes>
                  <mode value="edit_demo_preview">hidden</mode>
                </widgetModes>
              </widget>
            </layout>
          </layouts>
        </properties>
      </configuration>
      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/actions/tabs_widget_template.xhtml
      </property>
    </widgetType>

  </extension>