Hi Ranjith,
With nillable="true" Castor should use the primitive wrapper classes
instead of the actual primitive types, this is a known issue (or was a
known issue) I haven't checked in a while. Have you tried using Castor
0.9.5.3? I'm not sure if a bug report exists for this. Feel free to file
a bug report at http://bugzilla.exolab.org.
Thanks,
--Keith
-------- Original Message --------
Subject: [castor-dev] ValidationException: nillabe="true"
Date: Thu, 25 Mar 2004 10:00:07 -0800
From: "Pillai, Ranjith" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Hi Castor group,
I have an element called �Name� declared in my schema with
nillable=�true� attribute. But I get
ValidationException when I marshal this (When I call setName(null) on
Castor generated src object). >From the
group messages I found that passing an empty string instead of null will
resolve this. Yes I tried and that helped (an
empty element was created). But how does this work for date types or
Integer types etc? I am using Castor
0.9.5.2.
Any help will be deeply appreciated.
Thanks,
Ranjith Pillai.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev