PDA

View Full Version : Petclinic question


Patrick Vanhuyse
Sep 9th, 2004, 07:35 AM
In the Petclinic sample application, I open two windows.
I change a name in one window and the change doesn't appear in the second one.
Is it the normal behavior ?
I was expecting the change to be reflected.
The same applies to changes to address.

Patrick

Keith Donald
Sep 9th, 2004, 09:13 AM
Patrick,

I'd consider that a known issue in the sample app; we just haven't developed that part yet. Basically, what needs to happen is a event needs to be fired all view instances pick up and use to update; rather than having a single view update itself (which is what is happening now.) For example, the Petclinic service object may fire a ApplicationEvent when new objects are created or modified, triggering the tree views to update.