dbforms
Tag label


this tag renders a dabase-datadriven LABEL, which is a passive element (it can't be changed bythe user) - it is predestinated for use with read-only data (i.e. primary keys you don't want the user to change, etc)

Example:
label - can never be used as input field


Tag Information
Tag Classorg.dbforms.taglib.DbLabelTag
TagExtraInfo ClassNone
Body Contentempty
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
fieldNametruetruejava.lang.String name of the field this tag references to
maxlengthfalsetruejava.lang.String Set a limit to the number of characters visible
nullFieldValuefalsetruejava.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.
patternfalsetruejava.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.
customFormatterfalsetruejava.lang.String The name of a formatting instance registered previously by using the setCustomFormatter tag
styleClassfalsetruejava.lang.String CSS stylesheet class to be applied. This is done adding a SPAN element that contains the text.
titlefalsetruejava.lang.String this defines the "title" attribute for the HTML4 tag.

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.