Hi Bob,

> Just to expand on this a bit, CayenneForm (or rather the underlying 
> Form) doesn't support copying of to-many relationships since there 
> isn't enough data available for it to know which type of relationship 
> to create.
> 
> So what Malcolm means by writing code is you need to manage the 
> relationship yourself.
> 
> In your Page you would normally have a place where you load the data 
> and store the data. These are ideal places to manage the relationship e.g:

thanks for the explanation and the example code.

Got it working, but i get an ognl.NoSuchPropertyException when 
form.saveChanges() is called.
I guess it's because, like you described, CayenneForm doesn't know about the 
to-many relation and is trying to access the normal setter for 
QuerySelect->name when the form is saved.

Is it save to ignore this Exeption or should/can i tell CayenneForm to ignore 
this particular field?

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