On Tue, 14 Oct 2008, Kirk Is wrote:
> in the form I check the checkboxes and hit OK... the accessor for the
> field is read, but on a NEW instance of my model. It's NOT the same
> old model I've been passing around, nor has anything new been
> constructed or static code called. So on this new model, the accessor
> is called. But back at the onClose callback of the ModalWindow, the
> original model has not been touched.

Could it be that serialising and deserialising your model
causes this?

> How do I diagnose this? What am I missing? Is there some weird cloning
> going on, between the ModalWindow and/or the form, or why is it
> reading from one copy of the model and writing to another?

Have you checked that the equals() implementations of your
modelObjects are OK? By default, setModelObject() does not
change the modelObject if it's equal to the new one.

I'd suggest adding a unit test where the problem is 
reproduced and then changing the use of 
CompoundPropertyModel to handmade models. Something more
verbose but more explicit. Then it'll be easier to see 
what's going on.

Best wishes,
Timo

-- 
Timo Rantalaiho           
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to