cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist <mlundqui...@comcast.net>
Subject Re: Caching Problem
Date Tue, 02 Jan 2007 20:12:24 GMT

On Jan 2, 2007, at 10:17 AM, ZongoZongo wrote:

> 	var factory = Packages.de.doccollector.ObjectFactory.getInstance();
> 	var obj = factory.getFormObject(objectType, id, 0);
> 	//...
> 	//get XMLStream
> 	var doc = obj.getXmlData();
> 	form.load(doc);
>     	
> When I first enter the form, the formbinding works fine. Data is 
> loaded into
> the form and after editing it is written back to db. The problem 
> arises if I
> enter the form again. Then the data of the step before is loaded. Not 
> the
> modified Data. I asume Cocoon caches the variable "doc".

I don't think so.  How about you try adding "print (doc)" after the 
assignment to doc to find out?

My guess would be that your factory is returning an obj that gives you 
the same getXmlData() each time...?

cheers,
—ml—



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message