My apologize Werner, your solution worked great! Consider the bug fixed.

吕晓, if you checkout my comment on the JIRA, you can see an example of how to 
use ClonableFieldHandler:

http://jira.codehaus.org/browse/CASTOR-2963?focusedCommentId=263601&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_263601

Werner, I added a question to the JIRA as well: "One question... I'm a bit 
confused though why copyInstance needs to be passed a FieldHandler instance 
when that instance will always be "this" though."

Thanks!

Craig.


On 2011-04-07, at 12:58 PM, Werner Guttmann wrote:

> Hi Craig, Hi ?,
> 
> the test case used in this issue used to work for me before applying
> that patch. So in case there's still code that does not work, I'd love
> to know.
> 
> Kind Regards
> Werner
> 
> On 07.04.2011 16:27, Craig Tataryn wrote:
>> Hello, this is a known issue.  We thought we might have had a solution for 
>> 1.3.2 but the unit test attached to the JIRA still fails :(
>> 
>> http://jira.codehaus.org/browse/CASTOR-2963
>> 
>> It's been a thorn in my side too, when I have time I'll look into why the 
>> patch Werner applied didn't work.
>> 
>> Craig.
>> 
>> On 2011-04-07, at 1:19 AM, 吕晓一 wrote:
>> 
>>> Hi, all
>>> 
>>> My project has lots of models and map files, and has many date type fields 
>>> in these models and map files,
>>> 
>>> When the models are converted to xml files, the date-format in xml files 
>>> are required to be same,
>>> 
>>> so I want to define a <field-handler> in the main map file,  and reuse this 
>>> <field-handler> in any <class>.
>>> 
>>> I has tried many times, and was told to implement the new interface of 
>>> ClonableFieldHandler.
>>> 
>>> So, anybody could show me an example?
>> 
>> 


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to