Platform Explorer / Nuxeo Platform LTS 2015 7.10

Contribution org.nuxeo.ecm.platform.forms.layout.dev--layouts

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layout.dev inside nuxeo-platform-forms-layout-client-7.10-HF07.jar /OSGI-INF/layouts-dev-contrib.xml

Extension point

Extension point layouts of component WebLayoutManager.

Contributed items

  • <layout name="widget_dev_layout" type="devLayout">
          <rows>
            <row>
              <widget>type</widget>
            </row>
            <row>
              <widget>typeCategory</widget>
            </row>
            <row>
              <widget>mode</widget>
            </row>
            <row>
              <widget>dynamic</widget>
            </row>
            <row>
              <widget>properties</widget>
            </row>
            <row>
              <widget>controls</widget>
            </row>
          </rows>
          <widget name="type" type="text">
            <labels>
              <label mode="any">Type</label>
            </labels>
            <fields>
              <field>type</field>
            </fields>
          </widget>
          <widget name="typeCategory" type="text">
            <labels>
              <label mode="any">Type Category</label>
            </labels>
            <fields>
              <field>typeCategory</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.typeCategory or
                layoutValue.typeCategory == 'jsf', 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="mode" type="text">
            <labels>
              <label mode="any">Mode</label>
            </labels>
            <fields>
              <field>mode</field>
            </fields>
          </widget>
          <widget name="dynamic" type="text">
            <labels>
              <label mode="any">Dynamic</label>
            </labels>
            <fields>
              <field>dynamic</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
              </mode>
            </widgetModes>
          </widget>
          <widget name="properties" type="template">
            <labels>
              <label mode="any">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="controls" type="template">
            <labels>
              <label mode="any">Controls</label>
            </labels>
            <fields>
              <field>controls</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.controls, 'hidden',
                mode)}
              </mode>
            </widgetModes>
            <properties mode="any">
              <property name="template">
                /widgets/dev/properties_widget_template.xhtml
              </property>
            </properties>
          </widget>
        </layout>
  • <layout name="layout_dev_layout" type="devLayout">
          <rows>
            <row>
              <widget>type</widget>
            </row>
            <row>
              <widget>mode</widget>
            </row>
            <row>
              <widget>dynamic</widget>
            </row>
            <row>
              <widget>properties</widget>
            </row>
          </rows>
          <widget name="type" type="text">
            <labels>
              <label mode="any">Type</label>
            </labels>
            <fields>
              <field>type</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(empty layoutValue.type, 'hidden', mode)}
              </mode>
            </widgetModes>
          </widget>
          <widget name="mode" type="text">
            <labels>
              <label mode="any">Mode</label>
            </labels>
            <fields>
              <field>mode</field>
            </fields>
          </widget>
          <widget name="dynamic" type="text">
            <labels>
              <label mode="any">Dynamic</label>
            </labels>
            <fields>
              <field>dynamic</field>
            </fields>
            <widgetModes>
              <mode value="any">
                #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
              </mode>
            </widgetModes>
          </widget>
          <widget name="properties" type="template">
            <labels>
              <label mode="any">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>
        </layout>

XML source

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

    <layout name="widget_dev_layout" type="devLayout">
      <rows>
        <row>
          <widget>type</widget>
        </row>
        <row>
          <widget>typeCategory</widget>
        </row>
        <row>
          <widget>mode</widget>
        </row>
        <row>
          <widget>dynamic</widget>
        </row>
        <row>
          <widget>properties</widget>
        </row>
        <row>
          <widget>controls</widget>
        </row>
      </rows>
      <widget name="type" type="text">
        <labels>
          <label mode="any">Type</label>
        </labels>
        <fields>
          <field>type</field>
        </fields>
      </widget>
      <widget name="typeCategory" type="text">
        <labels>
          <label mode="any">Type Category</label>
        </labels>
        <fields>
          <field>typeCategory</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.typeCategory or
            layoutValue.typeCategory == 'jsf', 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="mode" type="text">
        <labels>
          <label mode="any">Mode</label>
        </labels>
        <fields>
          <field>mode</field>
        </fields>
      </widget>
      <widget name="dynamic" type="text">
        <labels>
          <label mode="any">Dynamic</label>
        </labels>
        <fields>
          <field>dynamic</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
          </mode>
        </widgetModes>
      </widget>
      <widget name="properties" type="template">
        <labels>
          <label mode="any">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="controls" type="template">
        <labels>
          <label mode="any">Controls</label>
        </labels>
        <fields>
          <field>controls</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.controls, 'hidden',
            mode)}
          </mode>
        </widgetModes>
        <properties mode="any">
          <property name="template">
            /widgets/dev/properties_widget_template.xhtml
          </property>
        </properties>
      </widget>
    </layout>

    <layout name="layout_dev_layout" type="devLayout">
      <rows>
        <row>
          <widget>type</widget>
        </row>
        <row>
          <widget>mode</widget>
        </row>
        <row>
          <widget>dynamic</widget>
        </row>
        <row>
          <widget>properties</widget>
        </row>
      </rows>
      <widget name="type" type="text">
        <labels>
          <label mode="any">Type</label>
        </labels>
        <fields>
          <field>type</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(empty layoutValue.type, 'hidden', mode)}
          </mode>
        </widgetModes>
      </widget>
      <widget name="mode" type="text">
        <labels>
          <label mode="any">Mode</label>
        </labels>
        <fields>
          <field>mode</field>
        </fields>
      </widget>
      <widget name="dynamic" type="text">
        <labels>
          <label mode="any">Dynamic</label>
        </labels>
        <fields>
          <field>dynamic</field>
        </fields>
        <widgetModes>
          <mode value="any">
            #{nxu:test(layoutValue.dynamic, mode, 'hidden')}
          </mode>
        </widgetModes>
      </widget>
      <widget name="properties" type="template">
        <labels>
          <label mode="any">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>
    </layout>

  </extension>