You'll also want to update the "normalize" method. Currently, it throws an
exception if the value ends with a single character (e.g. "hello a" results
in an Exception, but "hello ab" is ok).
-Steve
On Tuesday 07 August 2001 13:04, Arnaud Blandin wrote:
> Hi Steve,
>
> You're right the code needs to be plugged to the marshalling framework.
> Thanks for reporting it,
>
> Arnaud
>
> > -----Original Message-----
> > From: Steve Vaughan [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 07, 2001 4:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: [castor-dev] StringValidator and whitespace "collapse"
> >
> >
> > I noticed that the SourceGenerator creates a StringValidator when the
> > "collapse" facet is provided in a schema. Although there is code within
> > the StringValidator which collapses the whitespace within the string, I
> > don't see any place where this new value is saved. If a field's
> > whitespace is supposed to be collapsed, should the unmarshalled value be
> > collapsed or is this just intended to be used during the validation
> > phase?
> >
> > -Steve
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> > -----------------------------------------------------------
> > If you wish to unsubscribe from this mailing, send mail to
> > [EMAIL PROTECTED] with a subject of:
> > unsubscribe castor-dev
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev