I just test my application built using 0.9.3.9 using the new build 0.9.4 and ran into problems with our customer field handlers.  Everything works but during Marshallering the getValue method in the fieldhandler seems to get called twice for each field.  Any ideas of why the getValue gets called twice?

A portion of the mapping file is below.  Also note the com.ncs.grid.formdefn.Item is an abstract class. 

.....

 

<class name="com.ncs.grid.formdefn.PageItem">

 

 

               <field name="item" type="com.ncs.grid.formdefn.Item"

                                    handler="com.ncs.grid.persistence.ItemFieldHandler">

                    <bind-xml name="item" node="element" required="true" />

               </field>

 

               <field name="position" type="com.ncs.grid.formdefn.Position">

                    <bind-xml name="position" node="element" required="true"/>

               </field>

 

        </class>

 

...............

    <class name="com.ncs.grid.formdefn.Item">

 

                       <field name="oid" type="long" >

                             <bind-xml name="oid" node="attribute" required="true"/>

                       </field>

 

               <field name="name" type="string" >

                             <bind-xml name="name" node="element" required="true"/>

                       </field>

 

    </class>

 

    <class name="com.ncs.grid.formdefn.SkunkMarkItem" extends="com.ncs.grid.formdefn.Item"></class>

    <class name="com.ncs.grid.formdefn.AlphaItem" extends="com.ncs.grid.formdefn.Item"></class>

    <class name="com.ncs.grid.formdefn.QuestionItem" extends="com.ncs.grid.formdefn.Item"></class>

    <class name="com.ncs.grid.formdefn.GenderItem" extends="com.ncs.grid.formdefn.Item"></class>

    <class name="com.ncs.grid.formdefn.NumericItem" extends="com.ncs.grid.formdefn.Item"></class>

 

Greg Farris

NPD

x6075

 

****************************************************************************

This email may contain confidential
material. If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.

 ***************************************************************************

 

Reply via email to