Hi Bob,

> > Should i read the value of FO_ID on my own, construct the dataobject and
> use setDataObject to set it or is there a cleaner/better way to solve
> this?
> 
> 
> You are right, you need to ensure the oidField contains its value 
> *before* onProcess in order to populate the FormTable.
> 
> You could encapsulate this "early binding" with a custom CayenneForm 
> so that the oidField and classField values are available before 
> onProcess. For example:
> 
>    public class MyCayenneForm extends CayenneForm {
> 
>      public MyCayenneForm(String name) {
>        super(name);
> 
>        // Bind the oidField and classField to request parameters
>        oidField.bindRequestValue();
>        classField.bindRequestValue();
>      }
>    }
> 
> Hope this helps.

thank you, it works with a little change, I must not bind the requestvalue of 
the classField. If I do so, setting the DataObject on an get request fails 
since the value of cause is null and setDataObject checks if the given object 
is of the right class.

kind regards,
Stefan
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a

Reply via email to