Platform Explorer / CMF 1.8

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

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

Extension Point

Extension point widgettypes of component WebLayoutManager.

Contributed Items

  • <widgetType name="life_cycle_transitions">
    
          <documentation>
            This widget type displays a selection of available life cycle transitions
            given a life cycle state and a life cycle policy.
            <br/>
            It requires the configuration of the first field to map to a String
            value storing the chosen life cycle transition.
            <br/>
            It needs the following properties configuration:
            <ul>
              <li>
                currentLifeCycleState: the current state from where to start finding
                the available transitions.
              </li>
              <li>
                lifeCycleName: represents the life cycle from which to retrieve the
                transitions.
              </li>
            </ul>
            <br/>
            A standard definition could be:
            <code>
              <widget name="life_cycle_transitions" type="life_cycle_transitions">
                <labels>
                  <label mode="any"/>
                </labels>
                <fields>
                  <field>contextData['request/lifeCycleTransition']</field>
                </fields>
                <properties widgetMode="edit">
                  <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
                  <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
                </properties>
              </widget>
            </code>
          </documentation>
    
          <handler-class>
            org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
          </handler-class>
          <property name="template">
            /widgets/life_cycle_transitions_widget_template.xhtml
          </property>
    
        </widgetType>

    This widget type displays a selection of available life cycle transitions given a life cycle state and a life cycle policy. It requires the configuration of the first field to map to a String value storing the chosen life cycle transition. It needs the following properties configuration: A standard definition could be:

XML Source

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

    <widgetType name="life_cycle_transitions">

      <documentation>
        This widget type displays a selection of available life cycle transitions
        given a life cycle state and a life cycle policy.
        <br/>
        It requires the configuration of the first field to map to a String
        value storing the chosen life cycle transition.
        <br/>
        It needs the following properties configuration:
        <ul>
          <li>
            currentLifeCycleState: the current state from where to start finding
            the available transitions.
          </li>
          <li>
            lifeCycleName: represents the life cycle from which to retrieve the
            transitions.
          </li>
        </ul>
        <br/>
        A standard definition could be:
        <code>
          <widget name="life_cycle_transitions" type="life_cycle_transitions">
            <labels>
              <label mode="any"/>
            </labels>
            <fields>
              <field>contextData['request/lifeCycleTransition']</field>
            </fields>
            <properties widgetMode="edit">
              <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
              <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
            </properties>
          </widget>
        </code>
      </documentation>

      <handler-class>
        org.nuxeo.ecm.platform.forms.layout.facelets.plugins.TemplateWidgetTypeHandler
      </handler-class>
      <property name="template">
        /widgets/life_cycle_transitions_widget_template.xhtml
      </property>

    </widgetType>

  </extension>