From: Lane S. <la...@sa...> - 2002-11-26 01:34:03
|
Hi Marc, What I have found is that I like to work in wm with a limited set of classes for rendering, data acquisition. Further, generally, I keep a model or data class out of the context and use a facade of the model in the context. In this manner, I can build up a transaction within current session contexts and not modify the integrity of the memory image of the model which is reuseable in every transaction and viewable as an immutable, consistent image slice of the entire data model. Upon completion of a transaction within a facade data layer, it can be a) committed to the backing store and to the memory model following the ACID principle b) it can be committed to the backing store and the memory image can be marked as invalid and subject to a refresh at some interval of time in the future depending on the need for currency in the application. With SparseProperties, I have a facade property object which is extremely easy to manipulate in a wm context as a descendant of j.u.Hashtable and an implementor of Map. -lane Marc van de Geijn wrote: >Hi Lane, > > > >>I believe you are discussing the classical binding problem: data is >>retrieved in "jetools" format and you want it to be "wm formattable"? Is >>this correct? >> >> > >That wasn't my initial question, but after the exchange of a few posts with >Eric.. > > > >>If so, take a look at the new class file, o.w.util.SparseProperties. >>This is a subclass of Properties which is general enough to allow one to >>write property exchange adapters. You will see this class in the next >>release posted by Eric. >> >> > >I looked at the version in CVS, but I can't figure out where exactly in >WebMacro this class fits in. > >At this moment I'm looking into the option to write a JetgenTool class. I >hope (I'm not 100% sure yet) I can write a general class that can put all >Jetgen fields into the context and when it returns from a form post get all >the fields back into that Jetgen class. During the getting and putting I can >do the transformation for some classes to/from some other format. > >Kind regards, >Marc > > > > |