Wonderful! Thx a million Joerg, I spent all day yesterday on this so your
help is truly appreciated.

Linc


-----Original Message-----
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 16 January 2005 7:54 AM
To: [email protected]
Subject: Re: Adding date and time to a xml file

On 16.01.2005 00:38, Lincoln Mitchell wrote:

> Almost there now get error:
> 
> ---
> Tried to set value of output widget "data.dateTime" with an object of an
> incorrect type: expected class java.util.Date, received class
> java.lang.String.

Sounds good :-)

> ...but datatype base="date":
> 
> <fd:output id="dateTime" required="true">
>   <fd:label>DateTime:</fd:label>
>   <fd:datatype base="date"/>
> </fd:output>
> 
> Any clues?

Yes, you need a convertor in your binding file. See 
http://cocoon.apache.org/2.1/userdocs/forms/binding.html#fb%3Avalue for 
more information. Your use case it's exactly described.

Joerg

---------------------------------------------------------------------
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