Hi,

another question:

can I access from a FieldHandler the name or something about the field who
has called it? I want to know it because I want to make a FieldHandler that
has a different behaviour according to the field "caller".

Otherwise if I have an java attribute where there is the name of a person,
for example, and I want to separate it in three fields in the XML, do I have
to make 3 FieldHandlers? or is there another way?

The way I use is:

<field name="part1" handler="Part1FieldHandler">
...
</field>
<field name="part2" handler="Part2FieldHandler">
...
</field>
<field name="part3" handler="Part3FieldHandler">
...
</field>

Each handler returns the part of the name I want. I'm sure there is a better
way to do the same...

Thanks for your patience.

Regards
-- 
View this message in context: 
http://www.nabble.com/Using-handlers-tf3981642.html#a11303318
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