Jakarta > Tapestry
Jakarta
 
Font size:      

NumericField

Backwards compatible version of the 1.0.7 NumericField component.

See also: ValidField

Warning
This component has been deprecated; Tapestry 4.0 adds even better support for validation to TextField, TextArea and most other form element component.

Parameters

Name Type Direction Required Default Description
text java.lang.Number in/out yes   The value to be updated. When the form is submitted, this parameter is only updated if the value is valid. When rendering, a null value will render as the empty string. A value of zero will render normally. When the form is submitted, the type of the binding is used to determine what kind of object to convert the string to.
minimum java.lang.Number in no   The minimum value accepted for the field.
maximum java.lang.Number in no   The maximum value accepted for the field.
required boolean in no false If true, then a non-null value must be provided. If the field is not required, and a null (all whitespace) value is supplied in the field, then the value parameter is not updated.
displayName String in yes   A textual name for the field that is used when formulating error messages.
type String in yes   The class name used to convert the value entered. See NumberValidator.setValueType(String)

Body: removed

Informal parameters: allowed

Reserved parameters: name