Hi martin,

I have also implemented same kind of fieldhandler.

But my problem is that Castor dublicates the date tag within the xml data.

 

Here is the mapping definition of the fieldhandler.

            <field name="_currentTime" type="date" handler="*.DateOnlyDateHandler">

                  <bind-xml name="CurrentTime" node="element" />  

            </field>

With prefixed “_”, castor complain saying “no get_currenttime method”. I use “_” character because castor generated objects have field names with this prefix. If i remove, castor unintentaionally dublicates current time tag....

 

do you have any other recommondation?

 

Thanks in advance

Mesut

 

     

 

 


From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, July 18, 2005 6:34 PM
To: [email protected]
Subject: Re: [castor-user] DateFieldHandler usage!

 

Once you know the specific Date format you will implement with

you can use these DateFieldHandler methods (including checkValidity method)

----- Original Message -----

From: mesut çelik

Sent: Monday, July 18, 2005 12:06 PM

Subject: [castor-user] DateFieldHandler usage!

 

Hi all,

 

Is there any example for the usage of DateFieldHandler. I have a date tag within my xml file and after unmarshal and marshal operation its format unintentationally corrupt. How can i use datefieldhandler to manipulate and format my date data in the xml file?

 

 

 

 

Reply via email to