> >
> > You can to define
> >     dbforms.pattern.timestamp
> >     dbforms.pattern.date
> > etc.
> >
> > If you use the abbriviations SHORT, MEDIUM, FULL you can 
> define them too:
> >     dbforms.pattern.timestamp.short
> >     dbforms.pattern.date.full.
> >
> 
> How do we delare to use that style?
> 
> <dateField pattern="dbforms.pattern.timestamp.short" ????

<datefield pattern="SHORT"
             pattern="MEDIUM"   
           pattern="FULL"

This patterns are not case sensitive!

> 
> ALSO, the main difference between a dateField and textField 
> was "the additional attribute 'dateFormat' which sets the 
> format that a date value is sent to the database in 
> (dbforms-config.xml) <date-format>yyyy-MM-dd</date-format


> Previously with the dateField tag, using the <date-format> 
> attribute changed _how_the_data_is_sent_to_the_database.
> example -- <date-format>yyyy-MM-dd</date-format>
> 
> When using a pattern attribute declared in a message 
> properties file, the data format sent to the database will 
> not change, will it?  IE, when using different date formats 
> for German and Japanese locales, what format is the data sent 
> to the database in.  Is that still decided by using the 
> <date-format> attribute?

There is really no difference between calculation the values of dateField
and textField any longer. 
Both uses the same method.
The difference between the both fields is that you can have useJsScript
calendar in dateField and password attribute in textField.

Generating of the text representation is stired by using the given
format/pattern attributes for numeric and date/time/timestamp values.
The patterns of the format are sent to the html page as hidden fields.
This patterns are used to parse the string representation of the html form
back to an numeric or date/time/timestamp field.
So the <date-format> attribute in the config file is not longer used.

The defaults for date values is java.text.DateFormat.MEDIUM and for time
values  java.text.DateFormat.SHORT.

You can override the default for each field in the jsp page by using the
pattern attribute.
You can override the default for all fields using message resources and
define a value for 
   dbforms.pattern.<fieldtype> with <fieldtype> given from the config file

For date/time values you can define the short, medium and full formats too
(see above)


Also the text representation of  dateLabel and label are removed. The only
difference is the maxlength attribute in label. 


Hope it's clear now!

Cheers,
Henner 



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
DbForms Mailing List

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

Reply via email to