Valid values: "string" (also "alpha"), "DEC", or "curr", or "date"
Each type has specific masking rules (see the formatMask attribute for details).
A value of "string" supports the formatting of arbitrary text via the application of a simple text mask. This allows dynamic content to be arbitrarily combined with static text. A value of "alpha" is identical to "string".
A value of "DEC" supports the formatting of numeric values via the application of a numeric mask.
A value of "curr" supports the formatting of currency values via the application of a currency mask. The currency format should simply take a decimal specification and apply the locale specific currency format. Currently, currency formatting is not working due to an unresolved bug.
A value of "date", although legal, at present has no supporting date formatting implementation, due to the fact that the java.text.DateFormat class does not lend itself easily to the generic formatting support that a taglib implementation would require. We are investigating ways around this limitation.
Therefore, it is suggested that developers wishing to apply date formatting implement the begin<fieldName>Display(ChildDisplayEvent event) and/or end<fieldName>Display(ChildContentDisplayEvent event) events and therein take explicit advantage of the date formatting support available in the java.text.DateFormat class.
The JATO implementation of text formatting relies heavily on the java.text package and the format related classes therein. Please see that package for more information. See also the <JATO package>.util.HtmlUtil class.
|