Nuxeo Server

How to Use a Generic Widget in Layouts

This page is scheduled for review and update. Check back soon for updated content!

Make sure that the Nuxeo JSF UI target package is checked in your project's Application Definition to get all the needed features in Nuxeo Studio.

The Nuxeo Platform framework and its "Layout" module offers many widget types. Some are exposed directly in Studio interface, but some are not. If you want to use one of those existing widgets in Studio when editing a layout, you should drop a generic widget from the "Advanced Widgets" category on the right, as in the screenshot below:

You should then fill the proper type attribute in widget configuration screen (among the existing one or by giving the id of the one you target) and the widget properties in the Custom properties section.

 

Binding Fields from the document to the widget

Let's say that the widget needs to be linked to the metadata description from the schema dublincore (prefix dc), you can click on Add next to "Fields" and enter the field but syntax will differ whether you are on a form layout or a table layout.

  • Form Layout: dc:description
  • Table Layout: data.dc.description

 

2 months ago Loubna Benzaama Fix Showcase Content add-on doc
4 years ago Solen Guitter 9
4 years ago Solen Guitter 10
4 years ago Manon Lumeau 8
4 years ago Manon Lumeau 7
4 years ago Manon Lumeau 6
5 years ago Solen Guitter 5
5 years ago Frédéric Vadon 4 | added syntax to bind to fields
7 years ago Alain Escaffre 2
7 years ago Alain Escaffre 3 | Migrated to Confluence 4.0
7 years ago Alain Escaffre 1
History: Created by Alain Escaffre

We'd love to hear your thoughts!

All fields required