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

Datetime

Type datetime
Title Datetime
Description

The datetime widget displays a javascript calendar in create or edit mode, with additional message tag for errors, and a regular text output in any other mode. It uses a date time converter.

Widgets using this type can provide properties accepted on a <nxu:inputDatetime /> tag in create or edit mode, and properties accepted on a <h:outputText /> tag in other modes. The converter will also be given these properties.

Accepting Sub Widgets
No
Handling Labels
No
Containing Form
No
Handler Class org.nuxeo.ecm.platform.forms.layout.facelets.plugins.DateTimeWidgetTypeHandler
Categories document
Pattern pattern String pattern for the date and time, as described by the java.text.SimpleDateFormat class, and as used in the standard DateTimeConverter. Default value is "MMM d, yyyy". Sample value: "#{nxu:basicDateFormatter()}" or "#{nxu:basicDateAndTimeFormatter()}".
Time zone timeZone String timeZone ID. The server time zone is used if not set.
Required required
Format format String format for the date and time, as described by the java.text.SimpleDateFormat class, and as used in the standard DateTimeConverter. Default value is "MMM d, yyyy". Sample value: "#{nxu:basicDateFormatter()}" or "#{nxu:basicDateAndTimeFormatter()}".
Locale locale String representing the locale to use for the calendar. Current locale is used if not set.
Style class styleClass
Time zone timeZone String timeZone ID. The server time zone is used if not set.
Trigger image triggerImg Image path to use for the trigger. Available since 5.4.
Trigger label triggerLabel Label to display on the trigger image. Defaults to "...".
Trigger style class triggerStyleClass Style class to set on the trigger button tag, defaults to 'calendarTrigger'.