Nuxeo Showcase - Layout Service (forms, views, and actions)

Template

Description

The template widget displays a template content whatever the mode.

Widgets using this type must provide the path to this template ; this template can check the mode to adapt the rendering.

Note that the same handler class can be used to define a new widget type using a designated template, by registering it as is:

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