dbforms
Tag textFormat


this tag formats a value with dbforms format settings

Example:
					either the contextVar -OR- type and value must be
					set! This allows you to calculate a value in your
					jsp, store this into the pageContext or pass in a
					value directly and then use the textFormat tag to
					format it with the settings used in dbforms - with
					locale support.
				


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

Attributes
NameRequiredRequest-timeTypeDescription
typefalsetruejava.lang.String Fieldtype. Must match a dbforms field type declaration
valuefalsetruejava.lang.String The value which should be formatted
contextVarfalsetruejava.lang.String Name of a context variable which should be formatted
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

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.