I was not chaining the models as suggested and the ldm.getModelObject() does not get updated sometimes. Is that the type of problem that would be caused by not chaining the models? If so, it's only in some cases not all the time. My debugging brought me to review the models because it seemed like sometimes they become different objects in memory.
igor.vaynberg wrote: > > if you chain your models properly its no problem.. > > imodel ldm=new loadabledetachablemodel(..) > imodel prop=new propertymodel(ldm, "prop"); > > -igor > > On Wed, May 27, 2009 at 1:20 PM, bf <[email protected]> wrote: >> I constructed a Page that uses a LoadableDetachableModel. The >> LoadableDetachableModel retrieves an object from the Session and displays >> Panels from a list in the object. The Panels have TextFields which use >> elements from the List but it puts the object into a PropertyModel in >> order to access the attributes. >> My question is whether it is a problem to update the TextField via the >> PropertyModel or does the PropertyModel have to use a >> LoadableDetachableModel as well in order to get the object from the >> Session before doing an update? > -- View this message in context: http://www.nabble.com/simple-model-question-tp23750088p23786425.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
