Re: [castor-user] FieldHandler with parameters?

2006-04-19 Thread Keith Visco
Steven, It's probably not the best solution, but you can use the getFieldDescriptor() method of AbstractFieldHandler (GeneralizedFieldHandler) to find out about the which field is being processed and you can do the proper padding as necessary. --Keith [EMAIL PROTECTED] wrote: Hi folks,

Re: [castor-user] FieldHandler with parameters?

2006-04-19 Thread Ralf Joachim
Hi Steven, adding parameters that should be passed to a FieldHandler to field mapping should be easy but I don't know if there are any difficulties to pass them to the FieldHandler at construction. As I never worked at FieldHandlers myself I don't know if an own instance is created for every

RE: [castor-user] FieldHandler with parameters?

2006-04-19 Thread ELVART, CHRISTOPHER \(SBCSI\)
Keith said... It's probably not the best solution, but you can use the getFieldDescriptor() method of AbstractFieldHandler (GeneralizedFieldHandler) to find out about the which field is being processed and you can do the proper padding as necessary. This sounds OK to me. You could just

Re: [castor-user] FieldHandler with parameters?

2006-04-19 Thread Stephen Bash
Steven/Chris- To answer the last question, yes, if you use a FieldHandler to wrap data in CDATA blocks, the serializer will escape the leading character(s). The way to get around this has been discussed recently on the list, but basically consists of instantiating your own XMLSerializer and

RE: [castor-user] FieldHandler with parameters?

2006-04-19 Thread ELVART, CHRISTOPHER \(SBCSI\)
To answer the last question, yes, if you use a FieldHandler to wrap data in CDATA blocks, the serializer will escape the leading character(s). The way to get around this has been discussed recently on the list, but basically consists of instantiating your own XMLSerializer and configuring

[castor-user] FieldHandler with parameters?

2006-04-17 Thread puffmail
Hi folks, I'm trying to figure out how to do a custom FieldHandler that can have some parameters. In the on-going saga of my project, I have to apply some formatting rules to some of the outgoing XML. Specifically, for certain steps I need to have fixed-width content in the elements, and do one