Hi Janak Thanks for your quick reply!
The problem is that I need a solution that applies to all table models without having to set the update mode on each table model individually. This was possible with the previous solution you gave me for ULC 6.0.x. We need this for ULC 6.1.x to run all our functional UI tests with synchronous table model update mode. Regards, Etienne PS I'm still in the middle of upgrading and will report issues as they occur. -----Original Message----- From: Janak Mulani [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 18, 2006 9:07 AM To: Etienne Studer Cc: [email protected] Subject: RE: [ULC-developer] synchronous table model updates for testing Hi Etienne, Please make the following change: ClientContext.setModelUpdateMode((ITableModel) inTableModel, UlcEventConstants.SYNCHRONOUS_MODE); This should have been part of the Migration notes. Did you face any other problem? Thanks and regards, Janak -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Etienne Studer Sent: Wednesday, October 18, 2006 12:26 AM To: [email protected] Subject: [ULC-developer] synchronous table model updates for testing Hi How can I upgrade the following code to ULC 6.1.1: // install our own table model adapter cache instead of the standard ULC cache to ensure synchronous table model updates SerializableWeakHashMap customTableModelAdapterCache = new SynchronousModeTableModelAdapterCache(); ApplicationContext.setAttribute("com.ulcjava.base.server.ULCTableModelAd apte r.MODEL_ADAPTERS", customTableModelAdapterCache); private static final class SynchronousModeTableModelAdapterCache extends SerializableWeakHashMap { public Object put(Object inTableModel, Object inTableModelAdapter) { Object previous = super.put(inTableModel, inTableModelAdapter); if (inTableModel instanceof ITableModel) { ClientContext.setModelUpdateMode((ITableModel) inTableModel, IUlcEventConstants.SYNCHRONOUS_MODE); } return previous; } } Thanks in advance. Regards, Etienne _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
