RE: Cache (persistence performance)

2007-04-17 Thread Ard Schrijvers
Hello Dan, Hi! I have been trying for a few days now to find out where (and if) Cocoon persists the cached XML chunks obtained from pipelines. Almost all of the pipelines I've written implement CacheableProccessingComponent. You mean all your compoments in a pipeline implement

Re: googlemail ssl via SendMailTransformer

2007-04-17 Thread bart remmerie
I've finally got it working. You just need to get the properties set right (but if you surf the net, you will find a lot of different configurations to get gmail up and running) The configuration that works for me is the following (unlike Jeff's example ?!) mail.smtp.starttls.enable=true

AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Franziska Witzani
Unfortunately, I do no longer have that inside view of CForms. But I wonder if you have access to the Java API. ContainerWidgets like Form have a method getChildren() returning an Iterator. With it you can traverse the form model recursively and store the values by the widgets'

Re: Cache (persistence performance)

2007-04-17 Thread Dan Nicolici
Thank you for your reply, Ard! I don't know how to control the cache from cocoon.xconf. I use Cocoon 2.1.7. The cache section in cocoon.xconf looks like this: transient-store logger=core.store.transient parameter name=maxobjects value=1000/ /transient-store store logger=core.store

Re: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
Franziska Witzani franziska.witzani at e-tecture.com writes: I do. But for example dataModel.getChildren() is not defined (throws an error). So you might still be on the JavaScript wrapper hiding the Java API, not the actual Java object. In Form.js, it says function Form(formDefinition) {

Re: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
Joerg Heinicke joerg.heinicke at gmx.de writes: I really wondered about this one as well. What's Widget actually? There is no import in this file, only thing I found was the reference to/ defineClass of ScriptableWidget. So, where is the class definition of the object that is returned by

Re: Caching output from xpathdirectory generator

2007-04-17 Thread Fergus McMenemie
Thanks all, The change suggested by Joerg works fine. As a result of the correspondance my current understanding of caching pipelines, is that while caching keys etc accumulate down the pipeline the actual data is only cached at the end of the pipeline or after the last cache-able component.

RE: Cache (persistence performance)

2007-04-17 Thread Ard Schrijvers
Thank you for your reply, Ard! I don't know how to control the cache from cocoon.xconf. I use Cocoon 2.1.7. The cache section in cocoon.xconf looks like this: transient-store logger=core.store.transient parameter name=maxobjects value=1000/ /transient-store store

AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Franziska Witzani
In fact, I already tried to change the String that is returned by getClassName of ScriptableWidget like this: public String getClassName() { return _Widget; } Of course I deleted the build-directory and rebuilt Cocoon afterwards. But toString() still returns the String [object

Re: Field widget selection lists

2007-04-17 Thread Ralph Rauscher
Grzegorz Kossakowski wrote: Ralph Rauscher napisaƂ(a): Thanks Grzegorz! Actually I was thinking about using Unions. In my case however this would make things more complicated. One of several reasons being that the selection list for my A widget gets filled dynamically. Now the set of

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
On 17.04.2007 16:28, Franziska Witzani wrote: Invocation of getClassName returns an error. org.mozilla.javascript.EcmaError: TypeError: Cannot find function getClassName. (file:/D:/apache-tomcat-6.0.10/webapps/dibatest/exKo/flows/exKo.js#73) Either the loop is not executed if written like

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Jason Johnston
On Tue, 17 Apr 2007 22:23:42 +0200, Joerg Heinicke [EMAIL PROTECTED] wrote: On 17.04.2007 16:28, Franziska Witzani wrote: Invocation of getClassName returns an error. org.mozilla.javascript.EcmaError: TypeError: Cannot find function getClassName.

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Joerg Heinicke
On 18.04.2007 00:21, Jason Johnston wrote: If the goal is to be able to traverse the actual Java objects, you can use form.getWidget() rather than form.getModel(). That returns the actual org.apache.cocoon.forms.formmodel.Form object rather than a ScriptableWidget wrapper. Why do you let me

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Jason Johnston
Joerg Heinicke wrote: On 18.04.2007 00:21, Jason Johnston wrote: If the goal is to be able to traverse the actual Java objects, you can use form.getWidget() rather than form.getModel(). That returns the actual org.apache.cocoon.forms.formmodel.Form object rather than a ScriptableWidget

dynamic cForm generation

2007-04-17 Thread Rashel Shehata
Hey, I'm trying to generate cocoon forms dynamically. atm I create the cForm model xml dynamically using jx generator; this is what i have: in my flowscript: cocoon.sendPage(form_model-pipeline.xsp , {questions: questionRegistry.getAllQuestions()}); and in my pipeline: map:match

Re: custom generator and jx transformer

2007-04-17 Thread Angela vassar
Hi Ard I'm having the same problem as well. How do you save the serialized xml output from the jx generator as a file?? Is there anything in the documentation that I can read to guide me?? many thanks On 4/10/07, Ard Schrijvers [EMAIL PROTECTED] wrote: I'm trying to use a custom