JSP CUSTOM TAG LIBRARIES


checkbox tag
In the context of a form tag, enables you to edit the value of an item in a document using a checkbox control. This tag interacts with the form in either read mode (to generate a read only value) or edit mode (to generate an HTML <input> tag). In edit mode, this tag automatically updates the corresponding item values in the current document when the document is saved.

This tag interacts with the HTML "value" attribute of the input tag; it does not overwrite it. For single value fields, if the current value of the item in the document matches the value specified in the value attribute, the checkbox is selected. For multiple value fields, if any of the values of the item match the value specified in the value attribute, the checkbox is selected. When working with multi-value fields, make sure that the name and itemname attributes of each selected checkbox tag match.

When the form is submitted, only the value of the selected checkboxes are accepted. For single value fields, when the document is going to be saved, if the checkbox value is present, it is written into the item as the item value. If the checkbox value is not present, then "" (empty string) or 0 (zero) is written to the item value (depending on type). For multi-value fields, the form submission data contains all the selected values for a particular name and these are all written as the value of the item.

You cannot use the validation tags to validate user input. No error is thrown, but no validation is performed. If you want to ensure that a value is selected, provide a default value in the "value" attribute.

Contexts

Valid in:


Syntax
Attributes

bundle


datatype
default
itemname
labelbefore
labelkey
locale
multivalue
name
See the Common Domino JSP tag attributes section for definitions of debug, onfailure, and time.

HTML Attributes

Domino supports the following HTML tag attributes:

value


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