cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joerg Heinicke <joerg.heini...@gmx.de>
Subject Re: Adding date and time to a xml file
Date Sat, 15 Jan 2005 23:54:09 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message