Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] FW: MOXy 'Binding handler'

Hello Daniele,

JAXB provides the concept of a ValidationEventHandler so that you can be notified of the error, unfortunately it does not give you the opportunity to fix the error during the marshal/unmarshal.  Could you enter a MOXy bug (enhancement) for this?
-Blaise
 

From: Adriano Daniele [mailto:Daniele.Adriano@xxxxxxxxxxxxx]
Sent: February 16, 2011 8:05 AM
To: EclipseLink-users@xxxxxxxxxxx
Subject: [eclipselink-users] MOXy 'Binding handler'

 

Hi,
i want to ask you if MOXy provides a handler to modify the property value if a validation error occurs during the binding.


I want to show you an example to explain what i mean:

<element>XX</element> has maxLength=1 schema restriction

1. unmarshall call
2. presumed characters handler: here i'm able to evaluate the validation error and to modify the element value (for example i can truncate XX value)
3. unmarshaller will bind the modified element value to the dto property

Does MOXy provides or will provides the functionality to act between point 2 and point 3?

Thank you,
Daniele







Back to the top