(Quick Reference)
date
Purpose
Adds a
DateField to the parent container.
Examples
<v:form bean="${bookInstance}">
<v:date name="datePublished">Date Published</v:date>
</v:form>
Description
The date tag is a special type of
field tag, where the field component
is a Vaadin
DateField.
Body
- Contains the caption for the field
Attributes
Specific
name
(required) The property name of the field
caption
(optional) The caption of the field. Overrides the body content.
resolution
(optional) The resolution for the date field. Allowed values: day
, hour
, minute
, month
, millisecond
, second
, year
onValueChange
(optional) Either a ValueChangeListener or a Closure that takes a ValueChangeEvent parameter
Remember to set immediate="true"
if you want the ValueChangeEvent
to fire immediately when the user selects a new value.
General
var
(optional) Uses Grails's set tag to set the value of the specified variable to be this component.
class
(optional) The CSS class name to add to the component using the addStyleName() method
sizeUndefined
(optional) Calls setSizeUndefined() on the component. (Attribute value is ignored)
sizeFull
(optional) Calls setSizeFull() on the component. (Attribute value is ignored)
See Vaadin DateField API docs for full list of allowed attributes.