Platform Explorer / Nuxeo Platform 2023.11

Contribution org.nuxeo.ecm.platform.actions.actionwidgettypes.dev--layouts

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

Extension Point

Extension point layouts of component WebLayoutManager.

Registration Order

5
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

  • <layout name="action_widget_type_dev_layout" type="devLayout">
          <rows>
            <row>
              <widget>type</widget>
            </row>
            <row>
              <widget>categories</widget>
            </row>
            <row>
              <widget>label</widget>
            </row>
            <row>
              <widget>order</widget>
            </row>
            <row>
              <widget>icon</widget>
            </row>
            <row>
              <widget>accessKey</widget>
            </row>
            <row>
              <widget>confirm</widget>
            </row>
            <row>
              <widget>immediate</widget>
            </row>
            <row>
              <widget>link</widget>
            </row>
            <row>
              <widget>properties</widget>
            </row>
            <row>
              <widget>filterIds</widget>
            </row>
          </rows>
          <widget name="type" type="text">
            <labels>
              <label mode="any">Type</label>
            </labels>
            <fields>
              <field>type</field>
            </fields>
          </widget>
          <widget name="categories" type="text">
            <labels>
              <label mode="any">Action Categories</label>
            </labels>
            <fields>
              <field>categoryList</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.categoryList, 'hidden',
                mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="label" type="text">
            <labels>
              <label mode="any">Label</label>
            </labels>
            <fields>
              <field>label</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.label, 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="order" type="text">
            <labels>
              <label mode="any">Order</label>
            </labels>
            <fields>
              <field>order</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.order, 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="icon" type="text">
            <labels>
              <label mode="any">Icon</label>
            </labels>
            <fields>
              <field>icon</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.icon, 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="accessKey" type="text">
            <labels>
              <label mode="any">Access Key</label>
            </labels>
            <fields>
              <field>accessKey</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.accessKey, 'hidden',
                mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="confirm" type="text">
            <labels>
              <label mode="any">Confirm</label>
            </labels>
            <fields>
              <field>confirm</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.confirm, 'hidden',
                mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="immediate" type="text">
            <labels>
              <label mode="any">Immediate</label>
            </labels>
            <fields>
              <field>immediate</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.immediate, 'hidden',
                mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="link" type="text">
            <labels>
              <label mode="any">Link</label>
            </labels>
            <fields>
              <field>link</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.link, 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="properties" type="template">
            <labels>
              <label mode="any">Action Properties</label>
            </labels>
            <fields>
              <field>properties</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.properties, 'hidden',
                mode)}
              </mode>
            </widgetModes>
            <properties mode="any">
              <property name="template">
                /widgets/dev/properties_widget_template.xhtml
              </property>
            </properties>
          </widget>
          <widget name="filterIds" type="text">
            <labels>
              <label mode="any">Filters</label>
            </labels>
            <fields>
              <field>filterIds</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.filterIds, 'hidden',
                mode)}
              </mode>
            </widgetModes>
          </widget>
        </layout>

XML Source

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

    <!-- this layout is applied to an action, not a widget -->
    <layout name="action_widget_type_dev_layout" type="devLayout">
      <rows>
        <row>
          <widget>type</widget>
        </row>
        <row>
          <widget>categories</widget>
        </row>
        <row>
          <widget>label</widget>
        </row>
        <row>
          <widget>order</widget>
        </row>
        <row>
          <widget>icon</widget>
        </row>
        <row>
          <widget>accessKey</widget>
        </row>
        <row>
          <widget>confirm</widget>
        </row>
        <row>
          <widget>immediate</widget>
        </row>
        <row>
          <widget>link</widget>
        </row>
        <row>
          <widget>properties</widget>
        </row>
        <row>
          <widget>filterIds</widget>
        </row>
      </rows>
      <widget name="type" type="text">
        <labels>
          <label mode="any">Type</label>
        </labels>
        <fields>
          <field>type</field>
        </fields>
      </widget>
      <widget name="categories" type="text">
        <labels>
          <label mode="any">Action Categories</label>
        </labels>
        <fields>
          <field>categoryList</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.categoryList, 'hidden',
            mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="label" type="text">
        <labels>
          <label mode="any">Label</label>
        </labels>
        <fields>
          <field>label</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.label, 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="order" type="text">
        <labels>
          <label mode="any">Order</label>
        </labels>
        <fields>
          <field>order</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.order, 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="icon" type="text">
        <labels>
          <label mode="any">Icon</label>
        </labels>
        <fields>
          <field>icon</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.icon, 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="accessKey" type="text">
        <labels>
          <label mode="any">Access Key</label>
        </labels>
        <fields>
          <field>accessKey</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.accessKey, 'hidden',
            mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="confirm" type="text">
        <labels>
          <label mode="any">Confirm</label>
        </labels>
        <fields>
          <field>confirm</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.confirm, 'hidden',
            mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="immediate" type="text">
        <labels>
          <label mode="any">Immediate</label>
        </labels>
        <fields>
          <field>immediate</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.immediate, 'hidden',
            mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="link" type="text">
        <labels>
          <label mode="any">Link</label>
        </labels>
        <fields>
          <field>link</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.link, 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="properties" type="template">
        <labels>
          <label mode="any">Action Properties</label>
        </labels>
        <fields>
          <field>properties</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.properties, 'hidden',
            mode)}
          </mode>
        </widgetModes>
        <properties mode="any">
          <property name="template">
            /widgets/dev/properties_widget_template.xhtml
          </property>
        </properties>
      </widget>
      <widget name="filterIds" type="text">
        <labels>
          <label mode="any">Filters</label>
        </labels>
        <fields>
          <field>filterIds</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.filterIds, 'hidden',
            mode)}
          </mode>
        </widgetModes>
      </widget>
    </layout>

  </extension>