Attributes |
Name | Required | Request-time | Type | Description |
id | false | true | java.lang.String |
expose id, enables interaction with JavaScript
Identification which can be used to
'pinpoint' dbForms fields for use in
JavaScript methods. Nota bene: Not supported
by all browser!
Example:
<db:textField
fieldName="FIELD1"
maxlength="15"
id="InputField1"/>
|
fieldName | true | true | java.lang.String |
name of the field this tag references to
|
password | false | true | java.lang.String |
visually encrypted input field
|
defaultValue | false | true | java.lang.String |
default field name to use if the specified field
is empty.
|
pattern | false | true | java.lang.String |
When dealing with numeric or date/time values,
you could use the Java API to format the output
of the text field expressions yourself using the
format attribute. But there is a more convenient
way to do it: by using the pattern attribute.
The value you should supply to this attribute is
the same that you would supply if it were for
you to format the value using either the
java.text.DecimalFormat class or
java.text.SimpleDateFormat class, depending on
the type of value to format. In fact, what the
engine does is to instantiate the
java.text.DecimalFormat class if the text field
expression returns subclasses of the
java.lang.Number class or to instantiate the
java.text.SimpleDataFormat if the text field
expression return java.util.Date or
java.sql.Timestamp objects. For more detail
about the syntax of this pattern attribute,
check the Java API documentation for those two
classes: java.text.DecimalFormat and
java.text.SimpleDateFormat.
|
customFormatter | false | true | java.lang.String |
The name of a formatting instance registered
previously by using the setCustomFormatter
tag
|
hidden | false | true | java.lang.String |
Determines if the text field should be hidden or
displayed.
|
overrideValue | false | true | java.lang.String |
Defines the text field's default value. When
this attribute is set,the value retrieved from
the database is ignored.
|
nullFieldValue | false | true | java.lang.String |
If the value (retrieved from the database)
is null, allow the user to replace the text
to display by a custom value. May be used in
conjunction with dbForm's I18N support.
|
accessKey | false | true | java.lang.String |
The keyboard character used to move focus
immediately to thiselement.
|
maxlength | false | true | java.lang.String |
Maximum length of the string to be entered
|
readOnly | false | true | java.lang.String |
Rendering of read-only html widgets
WARNING: This is not terribly secure as it
becomes editable if javascript is disabled
in the browser. A More secure option is not
placing an update button on your form.
|
onBlur | false | true | java.lang.String |
JavaScript event handler executed when this
element loses inputfocus.
|
onChange | false | true | java.lang.String |
JavaScript event handler executed when this
element loses inputfocus and its value has
changed.
|
onClick | false | true | java.lang.String |
JavaScript event handler executed when this
element receives amouse click.
|
onDblClick | false | true | java.lang.String |
JavaScript event handler executed when this
element receives amouse double click.
|
onFocus | false | true | java.lang.String |
JavaScript event handler executed when this
element receives inputfocus.
|
onKeyDown | false | true | java.lang.String |
JavaScript event handler executed when this
element has focus and akey is depressed.
|
onKeyPress | false | true | java.lang.String |
JavaScript event handler executed when this
element has focus and akey is depressed and
released.
|
onKeyUp | false | true | java.lang.String |
JavaScript event handler executed when this
element has focus and akey is released.
|
onMouseDown | false | true | java.lang.String |
JavaScript event handler executed when this
element is under the mousepointer and a mouse
button is depressed.
|
onMouseMove | false | true | java.lang.String |
JavaScript event handler executed when this
element is under themouse pointer and the
pointer is moved.
|
onMouseOut | false | true | java.lang.String |
JavaScript event handler executed when this
element was under themouse pointer but the
pointer was moved outside the element.
|
onMouseOver | false | true | java.lang.String |
JavaScript event handler executed when this
element was not underthe mouse pointer but the
pointer is moved inside the element.
|
onMouseUp | false | true | java.lang.String |
JavaScript event handler executed when this
element is under themouse pointer and a mouse
button is released.
|
onSelect | false | true | java.lang.String |
JavaScipt event hanlder executed when the user
selects some text
|
size | false | true | java.lang.String | Size of the input field |
style | false | true | java.lang.String |
CSS styles to be applied to this HTML element.
|
styleClass | false | true | java.lang.String |
CSS stylesheet class to be applied to this HTML
element.
|
readOnlyStyleClass | false | true | java.lang.String |
CSS stylesheet class to be applied to this HTML
element (read-only mode).
|
title | false | true | java.lang.String |
this defines the "title" attribute for the HTML4
tag.
|
tabIndex | false | true | java.lang.String |
The tab order (ascending positive integers) for
this element.
|