On Mon, 20 Oct 2003 18:06:06 +0200 (MEST), Jan-Friedrich Mutter <[EMAIL PROTECTED]> wrote:

>
>
> Hi,
>
> I'd like to define a specific date format for a specific
> table.

Do you have this in your dbforms-config.xml


To set the format that a date value is sent to the database in, add it to dbforms-config.xml file as follows (for example):
<date-format>yyyy-MM-dd</date-format>


That is global I believe.

Then to change that table by table use the format attribute in the dateField or dateLabel tag

So maybe you need to set the <date-format>yyyy-MM-dd</date-format> in your dbforms-config.xml. I seem to remember having to do that but it was a dateField and not a dateLabel as you are using now but they might be the same so please give it a try.

The attribute jsCalendarDateFormat in the tag
> dateLabel doesn't work because it is not defined in the tld.
> The alternativ attribute "format" doesn't work in my JSP, but
> I don't know why. This is my code: <%
> java.text.SimpleDateFormat simpleDateFormatter = new
> java.text.SimpleDateFormat("yyyy-MM-dd");
> %>
>
> <db:dateLabel fieldName="[EMAIL PROTECTED]" format="simpleDateFormatter"/>
>
> Is this the best approach anyways? Would it be better to
> format the date in a Interceptor.postSelect() or is there
> even a special "date-format" tag in the dbform-config.xml
> which is placed inside a table?
>
What's happening if you use the format attribute? Any log messages? Any
debugging?
Which version are you using?

Regards,
Henner


I still use 1.1.3 because that is the stable version.


The exception is:
org.apache.jasper.JasperException: Unable to convert string
'simpleDateFormatter' to class java.text.Format for attribute format:
java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager


Cheers,
Jan.




-- Shawn

Happily using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/


------------------------------------------------------- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 _______________________________________________ DbForms Mailing List

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

Reply via email to