Hi all, here's the case:

I have an object, let's say a, which has a member b which has two members:
owner and driver of same type.
In a page I have a checkbox which when being pressed, sets driver = owner
and the opposite and I have the components bellow:

TextField<String> ownerName with PropertyModel(a,"b.owner.firstname");
TextField<String> driverName with PropertyModel(a,"b.driver.firstname");

When the checkbox is pressed [true] the "driverName" component is disabled.
The checkbox has an ajax event behavior to do the job/rerendering of the
appropriate components.
So far so good.

I have a modal window in the page at another point and after I open/close it
[without messing with the "b" object at all] the checkbox's behiavior
becomes weird.
When the driverName is rerendered, it has no value. The driverName was one
of 20 components that need to be rerendered. Before openening the modal
window everything works fine, after I close it the inputs are being drawn
with empty strings instead of the real values.
*If I call "driverName.modelChanged()" in the checkbox's ajax event behavior
then everything goes as expected.
Why is that?*


Any ideas?
Thanx,
Poko

Reply via email to