JSP CUSTOM TAG LIBRARIES


input tag
Enables you to edit the value of an item in a document. Depending on a form's mode attribute. Generates a read-only value when the form tag's editmode attribute equals "display" or an HTML input field when the form tag's editmode attribute equals "edit". Enables you to edit rich text items. In edit mode, this tag automatically updates the item values in the current document when the document is saved.

To perform client-side validation on user input, set the clientvalidate attribute of this tag to "onsubmit" or "onblur", set the clientvalidate attribute of the form tag to "true", and include one of the following validation tags to specify the type of validation to perform:

validatecc, validatedate, validatelength, validatepattern, validaterange, validaterequired, validatesummary, validatewith. These tags validate user input by either requiring a field to be filled or testing that an entered value conforms to a specified format, length, pattern or falls within a specified range. Be sure to set the name attribute of the validation tag equal to the name attribute of this tag to identify which Web control input to validate.

Note If you do not include one of these validation tags, no validation is performed.

Contexts

Valid in:


Syntax
Attributes

clientvalidate


datatype
defaultformula
defaultvalue
editformat
format
itemname
locale
multivalue
mvdisplayseparator
mveditseparator
name
timezone
value
See the Common Domino JSP tag attributes section for definitions of debug, onfailure, and time.

HTML Attributes

Domino supports the following HTML tag attributes:

type


See the Common HTML tag attributes section for definitions of the following:
Error Messages

If you want to validate the data supplied by a user in an input control and plan to use a localized messages file as the source for that error message, you must add an entry for that input control in the properties file. An example of the format you can use for the entry is as follows:

name

where name equals the name attribute of the input tag the message refers to. The message you add to the properties file serves as the default message if no message or msgkey attribute value is supplied with the validation tag.

See Creating localized message files and Handling errors for more details.

Note You cannot validate the checkbox and radio tags. If your JSP requires that a value be selected for a radio or checkbox control, be sure to supply a default value for the tag.

See Also