dbforms.pattern.number=###### or similar?
Yes, that's the usage.... Maybe someone could write it into the manual? Or
into a new section in the wiki? Frequently asked questions?


I put it in the section on internationalization a while ago...


Chapter 15. Internationalization and i18n Support 15.5. Setting the Pattern Attribue

Many tags make use of the pattern attribute. For example,

    <dateField pattern="date"


To set values globally for each type and language, you can define dbforms.pattern.timestamp dbforms.pattern.date etc. For Example:

ApplicationResources.properties


dbforms.pattern.date=yyyy-MM-dd dbforms.pattern.timestamp=yyyy-MM-dd HH:mm

If you use the abbriviations SHORT, MEDIUM, FULL you can define them too:

dbforms.pattern.timestamp.short
dbforms.pattern.date.full.

As defaults, Dbforms is using the following if you do not specify the patterns for 
each field individually.

   public static final int DATE_STYLE_DEFAULT = java.text.DateFormat.MEDIUM;
   public static final int TIME_STYLE_DEFAULT = java.text.DateFormat.SHORT;

--
Shawn

Karma is immutable, so act accordingly!



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to