users@jaxb.java.net

Re: ValidationEventHandler returns strange Locator.Object

From: <MRist_at_lstelcom.com>
Date: Fri, 21 May 2004 11:14:01 +0200

>I don't know if we document it somewhere, but we've defined a
>vendor-exntesion interface com.sun.xml.bind.ValidationEventLocatorEx
>that extends javax.xml.bind.ValidationEventLocator.
>
>I believe in the on-demand validation, the EventLocator object
>implements this interface, and it gives you which field of the object is
>causing the problem. (For example, you can figure out that the FirstName
>field of a Person object is causing the error.)
>
>Does that help you?

This whould help.
But unfortunately the EventLocator doesn't implement
com.sun.xml.bind.ValidationEventLocatorEx (at least in on-demand
validation).

>Let me know if this field name extension is of any help.
>
>Or maybe we can just give you both the parent and the child node. Does
>that help?

That whould be great too!


Regards,
Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net