Hi Michael,

Dates do work with Intake (at least the version I have with 2.3.1).  You can
declare it as such:

<field name="MyDate" key="MyDate" type="DateString" displayName="My Date *">
  <rule name="required" value="true">Please enter my date</rule>
  <rule name="format" value="yyyy/MM/dd">Please enter a valid my date
(yyyy/mm/dd)</rule>
</field>

The format rule is the important one here since it says how to convert from
the input string to the Date object (and how to display existing Date
objects).  I'm pretty sure you can have hours and minutes in the rule.

Good luck,

David

-----Original Message-----
From: Michael Kunze [mailto:[EMAIL PROTECTED] 
Sent: Thursday April 28, 2005 1:15 AM
To: [email protected]
Subject: Intake and dates


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi folks,

i have a businessobject which contains a java.util.Date member. I need
to map that object to a form with intake.
Probably the best way (for the user) is to display a dropdown box for
the hours with 24 values and another dropdown box for the minutes
(seconds are not really needed for my purpose).

As far as i could see there is no date type known to intake. So my first
approach was to use a normal text input field and declare it as string
in intake. Entering a value like 08:00:00 gave me an exception about
incompatible types (of course. it's trying to assign a string to a date).

Is there a way for my two dropdown boxes to work? How can i realize that?

Thanks for your help,
Michael

- --
Michael Kunze
http://www.smrealms.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFCcJuSikpRWGebGdQRAjZ5AKDCzs3u1G9xchEkpsJc9fCPEzB/ywCfR9Cn
OPmDxgKVdI6iauUKOgwRmQ4=
=k9vL
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to