Hi Janak Thanks very much for the quick and helpful feedback!
Have a nice week-end, Etienne -----Original Message----- From: Janak Mulani [mailto:[EMAIL PROTECTED] Sent: Friday, October 20, 2006 7:13 AM To: Etienne Studer Cc: [EMAIL PROTECTED] Com Subject: RE: [ULC-developer] synchronous table model updates for testing Hi Etienne, Class SerializableWeakHashMap no longer exists. ULC's serialization infrastructure will handle HashMaps. See section 3.4.4 of ULC Extension Guide. So all you have to do is: 1. SynchronousModeTableModelAdapterCache extends WeakHashMap 2. ClientContext.setModelUpdateMode((ITableModel) inTableModel, UlcEventConstants.SYNCHRONOUS_MODE); Thanks and regards, Janak >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] Behalf Of Etienne Studer >Sent: Wednesday, October 18, 2006 10:00 PM >To: [EMAIL PROTECTED] Com >Subject: RE: [ULC-developer] synchronous table model updates for >testing > > >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.ULCTableModelA >d >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 _______________________________________________ ULC-developer mailing list [email protected] http://lists.canoo.com/mailman/listinfo/ulc-developer
