...
- String: as a text field
- Number: as a text field
- Enum: as a drop-down list
- Boolean: as a checkbox
- Date: as a JavaScript calendar
- Calendar: as a JavaScript calendar
Resolving a property type to an editor type involves a search up the inheritance hierarchy: thus the super-type of Integer, Long, BigDecimal, etc. is Number, which uses a text field for data entry.
The list of supported property types is extensible (this is documented below).
...
If desired, additional validation may be specified using the @Validate annotation. See Forms and Validation.
As of Tapestry 5.2, validation may also be specified via the containing component's property file, using a key in the form of propertyId-validate
(eg: myfield-validate=required).
Property ordering
By default, the order in which properties are presented is as defined above (order of the getter method). This can be overridden using the ReorderProperties class annotation.
...