Hi Joachim!

I want to use multiple handlers mainly because I want to reuse one handler,
that verifies if the value of a field is null or not. In case it is null,
the handler returns an string with no value (""). Using this handler, I
ensure that all the required fields in the XML schema are generated by
Castor, having "" (in case the value is null) or other value. I do that
because Castor doesn't marshal a field that has null value, isn't it? After
Castor has marshalled the objects, I validate the generated XML document
with its schema, so the   required fields defined in the schema has to
appear in the XML document.

I would like to use the handler that makes to appear the fields that has
null value replacing it by "" value, as I've explained, for each required
field. But, each field has another handler that modifies its value, so I
think that concatening handlers is useful to reuse some handlers. 

I have a lot of handlers that convert field's value, but I don't want to
insert the same treatment in all handlers. 

That's all.

Regards
-- 
View this message in context: 
http://www.nabble.com/Using-more-than-one-handler-tf4141353.html#a11805264
Sent from the Castor - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email

Reply via email to