Re: Alternative to Javascript + continuations?

2009-09-11 Thread Gabriel Gruber
Hi David, we have a huge product based on cocoon 2.1.11 / spring / hibernate and started 5 years ago with the flowscript / continuations aproach. meanwhile we introduced adapters to use javaclasses instead of flowscripts. main reason for not using apples directly was, that we did not want

Re: Alternative to Javascript + continuations?

2009-09-11 Thread David Legg
Hi Gabriel, we have a huge product based on cocoon 2.1.11 / spring / hibernate and started 5 years ago with the flowscript / continuations aproach. Thanks for that. Every now and then I need a reminder about why Cocoon is worth continuing ;-) Regards, David Legg

Alternative to Javascript + continuations?

2009-09-10 Thread David Legg
the flowscript with? I thought one of Cocoon's best contributions to humanity was flowscript together with continuations so I'm curious to learn what you use instead... are you using Apples? Regards, David Legg - To unsubscribe

[2.2] java.lang.NoClassDefFoundError: org/mozilla/javascript/continuations/Continuation

2009-02-23 Thread Andreas Hartmann
remember adding the Spring configurator namespace to some bean declaration files to enable placeholder processing, but I can't imagine that there is a relation … java.lang.NoClassDefFoundError: org/mozilla/javascript/continuations/Continuation at java.lang.Class.getDeclaredMethods0(Native

Re: [2.2] java.lang.NoClassDefFoundError: org/mozilla/javascript/continuations/Continuation

2009-02-23 Thread Grzegorz Kossakowski
already worked. I remember adding the Spring configurator namespace to some bean declaration files to enable placeholder processing, but I can't imagine that there is a relation … java.lang.NoClassDefFoundError: org/mozilla/javascript/continuations/Continuation

[Solved] [2.2] java.lang.NoClassDefFoundError: org/mozilla/javascript/continuations/Continuation

2009-02-23 Thread Andreas Hartmann
? All I can tell is that the sitemap + flowscript already worked. I remember adding the Spring configurator namespace to some bean declaration files to enable placeholder processing, but I can't imagine that there is a relation … java.lang.NoClassDefFoundError: org/mozilla/javascript/continuations

My continuations are not Garbage Collected - memory leak ?

2009-01-20 Thread Benoit de CHATEAUVIEUX
Hi Cocooners, I'm profiling my Cocoon 2.2 webapp because I'm facing a memory leak. I encountered in my Heap Memory a lot of Continuations that are never deleted. I analyzed the memory after two hours of inactivity and, even after having performed some Garbage Collections, I found Continuations

Problems with continuations

2008-10-31 Thread Victor Vera
-with-continuations-tp20276019p20276019.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Fixed TimeToLive of JavaFlow Continuations

2007-06-12 Thread Christofer Dutz
Hi, I was currently analysing some of my customers bug reports and in the course of this had to find out that there is a small bug in the JavaFlowInterpreter code. The parameter timeToLive is fixed to 60 with no possibility of changing this. If I should supply a patch, I willl gladly do

Re: Fixed TimeToLive of JavaFlow Continuations

2007-06-12 Thread Torsten Curdt
This has been brought up already a couple of times ...go for it cheers -- Torsten On 12.06.2007, at 11:05, Christofer Dutz wrote: Hi, I was currently analysing some of my customers bug reports and in the course of this had to find out that there is a small bug in the JavaFlowInterpreter

Re: Fixed TimeToLive of JavaFlow Continuations

2007-06-12 Thread Christofer Dutz
Well the fix works great ;) simply change Line 52 of org.apache.cocoon.components.flow.java.JavaInterpreter from private int timeToLive = 60; to private int timeToLive = 0; makes the WebContinuationManager use the defaultTimeToLive configured in the sitemap ... don't really know why the

Re: Fixed TimeToLive of JavaFlow Continuations

2007-06-12 Thread Torsten Curdt
Fair enough :) On 12.06.2007, at 12:19, Christofer Dutz wrote: Well the fix works great ;) simply change Line 52 of org.apache.cocoon.components.flow.java.JavaInterpreter from private int timeToLive = 60; to private int timeToLive = 0; makes the WebContinuationManager use the

Re: Continuations with dynamically created forms?

2007-05-31 Thread Niels van Kampenhout
Derek Hohls wrote: That works now - only issue is that the continuation no. has a } at the end - is this a problem: You can leave the last '}' out, I think it was a typo in my earlier reply :-) Regards, Niels - To

Continuations with dynamically created forms?

2007-05-30 Thread Derek Hohls
Working with Cocoon 2.1.8 I am getting the following error when I try to reference the continuation variable, used for the form action. javax.xml.transform.TransformerException: Could not find variable with the name of continuation Basically, I am calling the form creation match via

Re: Continuations with dynamically created forms?

2007-05-30 Thread Niels van Kampenhout
Derek Hohls wrote: Working with Cocoon 2.1.8 I am getting the following error when I try to reference the continuation variable, used for the form action. javax.xml.transform.TransformerException: Could not find variable with the name of continuation Basically, I am calling the form

Re: Continuations with dynamically created forms?

2007-05-30 Thread Derek Hohls
Thanks Niels but I am not sure that is the fault.. I now get the error: org.xml.sax.SAXParseException: The value of attribute action associated with an element type ft:form-template must not contain the '' character. when I try and use the CDATA wrapper in the stylesheet: ft:form-template

Re: Continuations with dynamically created forms?

2007-05-30 Thread Niels van Kampenhout
Hi Derek, Derek Hohls wrote: Thanks Niels but I am not sure that is the fault.. I now get the error: org.xml.sax.SAXParseException: The value of attribute action associated with an element type ft:form-template must not contain the '' character. when I try and use the CDATA wrapper in the

Re: Continuations with dynamically created forms?

2007-05-30 Thread Niels van Kampenhout
Derek Hohls wrote: ft:form-template action=![CDATA[#{$continuation/id}.continue}]] method=POST BTW if you use ft:continuation-id/ inside your template instead of putting the continuation ID in the URL, you don't have this problem, and you get a nicer URL for free :-) Regards, Niels

Re: Continuations with dynamically created forms?

2007-05-30 Thread Derek Hohls
Thanks Niels That works now - only issue is that the continuation no. has a } at the end - is this a problem: action=3d815e...b28.continue} Thanks Derek Niels van Kampenhout [EMAIL PROTECTED] 2007/05/30 04:42 PM Hi Derek, Derek Hohls wrote: Thanks Niels but I am not sure that is the

Re: Continuations and Clustering/Session Replication - help

2007-05-18 Thread Reinhard Poetz
Diogo Matos wrote: Hi all, I have a environment where I run 2 tomcat cocoon instances using session replication. Using continuations I have a serious problem as I cannot replicate the continuationID across the 2 cocoon instances. Is there anyway of using continuations and replicate them

Continuations and Clustering/Session Replication - help

2007-05-17 Thread Diogo Matos
Hi all, I have a environment where I run 2 tomcat cocoon instances using session replication. Using continuations I have a serious problem as I cannot replicate the continuationID across the 2 cocoon instances. Is there anyway of using continuations and replicate them across the 2 cocoon

Re: Continuations and Clustering/Session Replication - help

2007-05-17 Thread Michael Wechner
Diogo Matos wrote: Hi all, I have a environment where I run 2 tomcat cocoon instances using session replication. Using continuations I have a serious problem as I cannot replicate the continuationID across the 2 cocoon instances. Is there anyway of using continuations and replicate them

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

2007-04-18 Thread Franziska Witzani
both, Jörg and Jason! :) -Ursprüngliche Nachricht- Von: Jason Johnston [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 18. April 2007 02:17 An: users@cocoon.apache.org Betreff: Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers? Joerg Heinicke wrote: On 18.04.2007 00:21, Jason

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: 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

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: 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

AW: AW: Continuations: Snapshot or Pointers?

2007-04-16 Thread Franziska Witzani
back with continuations, the contents of this object are always set back to the state they had, when the called continuation had been created. -- And I have another question: -- How can I serialize the contents of a CForms-Datamodel which you get -from formObject.getModel

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

2007-04-16 Thread Joerg Heinicke
On 16.04.2007 10:29, Franziska Witzani wrote: As I explained before, I need to serialize the contents of the data model into the pageLocal-object. dataModel = myCFormsFormObject.getModel(); So, what I need is more information about the data model object. You can read the values from it, if

Re: AW: Continuations: Snapshot or Pointers?

2007-04-14 Thread Joerg Heinicke
On 13.04.2007 13:43, Franziska Witzani wrote: @Joerg: what you said about the difference between values of variables and references to objects is true for saving them in the PageLocal-Object. In Continuations Flowscript-Variables seem to be only referenced as well. They might be stored

AW: Continuations: Snapshot or Pointers?

2007-04-13 Thread Franziska Witzani
Hi Jason, hi Joerg! cocoon.createPageLocal() was exactly what I've been looking for. Thanks a lot! @Joerg: what you said about the difference between values of variables and references to objects is true for saving them in the PageLocal-Object. In Continuations Flowscript-Variables seem

Continuations: Snapshot or Pointers?

2007-04-12 Thread Franziska Witzani
back if you go back with continuations, but always hold the highest value.) Is there a way to change that by configuring something, or will I have to change the Cocoon-source code or find another way around it? Regards, Franziska Witzani

Re: Continuations: Snapshot or Pointers?

2007-04-12 Thread Joerg Heinicke
() it will not be set back if you go back with continuations, but always hold the highest value.) They are indeed pointers, not snapshots. But this is only true for objects. AFAIK there is no way to point to a primitive type, they are always passed by value, not by reference. This means a simple counter should

Re: Continuations: Snapshot or Pointers?

2007-04-12 Thread Jason Johnston
, if you have a counter, which is incremented after each sendPageAndWait() it will not be set back if you go back with continuations, but always hold the highest value.) They are indeed pointers, not snapshots. But this is only true for objects. AFAIK there is no way to point to a primitive type

RE: Misusing Flowscript Continuations

2007-04-04 Thread Warrell
I recognise that continuations and Flow eliminate the need for an FSM at the web navigation level, Warrell -Original Message- From: Dev at weitling [mailto:[EMAIL PROTECTED] Sent: 06 March 2007 12:12 To: Users at Cocoon Subject: Misusing Flowscript Continuations Hi, I want to model

Re: Misusing Flowscript Continuations

2007-04-04 Thread Torsten Curdt
On 04.04.2007, at 11:12, Warrell wrote: I wonder if you have looked at the SCXML Apache project http://jakarta.apache.org/commons/scxml/. This offers a very robust implementation of a an FSM specified in XML. *shiver* I'm thinking you could implement your persistent FSM in this and then

AW: Question on Ajax and continuations

2007-03-09 Thread [EMAIL PROTECTED]
] Gesendet: Donnerstag, 8. März 2007 15:46 An: users@cocoon.apache.org Betreff: Question on Ajax and continuations I just have a question on Ajax processing to help me understand what's happening. I'm using 2.1.9. Here's the scenario: - an on-change listener set values on a form

Question on Ajax and continuations

2007-03-08 Thread Gary Larsen
I just have a question on Ajax processing to help me understand what's happening. I'm using 2.1.9. Here's the scenario: - an on-change listener set values on a form - form is submitted - back button on browser - the values are no longer set When

Misusing Flowscript Continuations

2007-03-06 Thread Dev at weitling
Hi, I want to model a kind of finite state machine elegantly via a Flowscript. My problem: The whole process is not done in one session but could last over multiple logins over days or weeks. To be more precise: I have an object several users will touch one by one, each changing the state of the

Re: Misusing Flowscript Continuations

2007-03-06 Thread Tobia
Dev at weitling wrote: Any idea how to misuse FlowScript is appreciated :-) I don't know if this can be considered misuse of flowscript. It's an email confirmation thingy made as a trivial state machine. The interesting part is the interaction of the step variable with the continuation. Here

Re: Misusing Flowscript Continuations

2007-03-06 Thread Dev at weitling
Hi Tobia, I don't know if this can be considered misuse of flowscript. We are at a misunderstanding now... It's not about email. It's about an object (here a question for an examination) going through a process of creation, editing, rating, translating by several users (authors, experts,

Re: Misusing Flowscript Continuations

2007-03-06 Thread Bertrand Delacretaz
On 3/6/07, Dev at weitling [EMAIL PROTECTED] wrote: ...My idea was to model that process as flow handling the state as continuation entries saved in the database. When a user has a question on his to-do-list the database-loaded continuation just continues in the flow You might be better

Re: Misusing Flowscript Continuations

2007-03-06 Thread Tobia
Dev at weitling wrote: My idea was to model that process as flow handling the state as continuation entries saved in the database. I don't think it's a good idea to save (serialized) continuation objects in a database. What happens when you restart Cocoon? What happens when you upgrade Cocoon

Re: Misusing Flowscript Continuations

2007-03-06 Thread Dev at weitling
You might be better served with a workflow engine, see http://wiki.apache.org/cocoon/Workflow for example. Looks great. I start digging thru! (Solving a problem by lavishing with solutions ;-) Thanks, Florian - To

Re: Misusing Flowscript Continuations

2007-03-06 Thread Dev at weitling
I don't think it's a good idea to save (serialized) continuation objects in a database. What happens when you restart Cocoon? What happens when you upgrade Cocoon / Rhino / whatever? Those questions have been gnawing on me, too. I'm in search of an easy way to model a state machine as

Re: Misusing Flowscript Continuations

2007-03-06 Thread Torsten Curdt
of the step variable with the continuation. Here it is in pseudo-flowscript: That's a misuse of continuations. Why the steps? That's what the continuation will do for you. Think outside of the state machine showPasswordForm(); sendEmail(); // now the email will have the link to the continuation

Re: Misusing Flowscript Continuations

2007-03-06 Thread Torsten Curdt
On 06.03.2007, at 16:46, Tobia wrote: Dev at weitling wrote: My idea was to model that process as flow handling the state as continuation entries saved in the database. I don't think it's a good idea to save (serialized) continuation objects in a database. What happens when you restart

Re: Misusing Flowscript Continuations

2007-03-06 Thread Tobia
Torsten Curdt wrote: That's a misuse of continuations. Why the steps? That's what the continuation will do for you. Think outside of the state machine showPasswordForm(); sendEmail(); // now the email will have the link to the continuation showSentPage(); // execution will suspend

Re: Misusing Flowscript Continuations

2007-03-06 Thread Torsten Curdt
On 06.03.2007, at 18:32, Tobia wrote: Torsten Curdt wrote: That's a misuse of continuations. Why the steps? That's what the continuation will do for you. Think outside of the state machine showPasswordForm(); sendEmail(); // now the email will have the link to the continuation

AW: inner functions and continuations...

2006-10-20 Thread [EMAIL PROTECTED]
and continuations... I am not sure, but I somehow recall that the execution thread is not literally saved, but that the variables in the context are saved and restored and that the function is re-executed, but with a special flag that makes it jump to the position where the previous request left

AW: inner functions and continuations...

2006-10-19 Thread [EMAIL PROTECTED]
functions and continuations... hi everyone! i'm trying to add local functions to a flowscript in order to make it more maintainable. the code looks like this: function executeUsecase() { var someLocalVar; function foo() { ... } foo

RE: inner functions and continuations...

2006-10-19 Thread Geert Josten
] Verzonden: zaterdag 14 oktober 2006 15:22 Aan: users@cocoon.apache.org Onderwerp: inner functions and continuations... hi everyone! i'm trying to add local functions to a flowscript in order to make it more maintainable. the code looks like this: function executeUsecase

inner functions and continuations...

2006-10-14 Thread Jörn Nettingsmeier
hi everyone! i'm trying to add local functions to a flowscript in order to make it more maintainable. the code looks like this: function executeUsecase() { var someLocalVar; function foo() { ... } foo(); sendPageAndWait(/some/pipeline);

Re: Re: CForms in Portal + Continuations

2006-08-08 Thread z-cool
manually to http://.../cocoon/portal/path-to-my-coplet-pipeline/continuation-id.continue everything works fine, but I am outside of the portal... What is the way to get cforms + continuations working in the portal? (cocoon 2.1.10-dev) Thanks in advance! Regards, Wadim

Re: CForms in Portal + Continuations

2006-08-07 Thread Philippe Gassmann
everything works fine, but I am outside of the portal... What is the way to get cforms + continuations working in the portal? (cocoon 2.1.10-dev) Thanks in advance! Regards, Wadim __ Verschicken Sie romantische, coole und witzige

CForms in Portal + Continuations

2006-08-04 Thread Wadim Kruse
... What is the way to get cforms + continuations working in the portal? (cocoon 2.1.10-dev) Thanks in advance! Regards, Wadim __ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http

Re: Weird Javascript error in continuations

2006-08-03 Thread Leszek Gawron
Toby wrote: Leszek wrote: Simply speaking: page local is a special variable that has different values in different continuations. So it seems that a continuation by default only saves the program counter (or equivalent notion in JS) but not the local variables. This is a bit counter

RE: Weird Javascript error in continuations

2006-08-02 Thread Ard Schrijvers
different values in different continuations. This is both neat and dangerous in terms of resource consumption. BTW, resource considerations aside, you need global (continuation-independent) state for things like being able to detect when the user has re-submitted a form (e.g

Re: Weird Javascript error in continuations

2006-08-02 Thread Toby
Leszek wrote: Simply speaking: page local is a special variable that has different values in different continuations. So it seems that a continuation by default only saves the program counter (or equivalent notion in JS) but not the local variables. This is a bit counter-intuitive

Re: Weird Javascript error in continuations

2006-08-02 Thread Jason Johnston
Leszek wrote: Simply speaking: page local is a special variable that has different values in different continuations. So it seems that a continuation by default only saves the program counter (or equivalent notion in JS) but not the local variables. This is a bit counter-intuitive

RE: Weird Javascript error in continuations

2006-08-01 Thread Ard Schrijvers
/snip Continuations are for managing flow, not keeping full state because it would consume too much resources. In 99% you do not need variables to have values bound to a specific continuation. Still you have an option to do so: var pageLocal = cocoon.createPageLocal(); pageLocal.a

Re: Weird Javascript error in continuations

2006-08-01 Thread Mark Lundquist
On Aug 1, 2006, at 1:07 AM, Ard Schrijvers wrote: I never used (saw :-) ) this createPageLocal untill now, Huh, I sent a reply on this thread suggesting createPageLocal() last week, oh well... :-) and looked at http://cocoon.apache.org/2.1/userdocs/flow/api.html, but I don't really get

Re: Weird Javascript error in continuations

2006-07-26 Thread Toby
Jason Johnston wrote: First you assign the 'useless' variable a String value, then you create the continuation. When you resume the continuation the first time, you re-assign the 'useless' variable so that it now holds an Array value (String.split() returns an Array). When you resume the

Re: Weird Javascript error in continuations

2006-07-26 Thread Simone Gianni
Hi Toby, I think you are right. What a continuation does (should do) is dump the local variables and restore them before restarting the flow. This means that if you write var a = 1; then create a continuation, when you return to that continuation a should be 1 again, even if in other continuations

RE: Weird Javascript error in continuations

2006-07-26 Thread Ard Schrijvers
Hello Simone, talking about continuations, did you already find a solid way to handle high traffic sites with many concurrent continuations and memory useage? It bothers me a little that when building sites, we have to keep track of the number of continuations (we had a large site with many

Re: Weird Javascript error in continuations

2006-07-25 Thread Jason Johnston
I just came across a very strange error, possibly a bug in Cocoon! It's easy to reproduce: edit samples/blocks/forms/flow/registration.js from Cocoon 2.1.8, adding the lines marked with '' function registration() { var useless = 'one two'; var form = new

Re: Weird Javascript error in continuations

2006-07-25 Thread Toby
Jason Johnston wrote: First you assign the 'useless' variable a String value, then you create the continuation. When you resume the continuation the first time, you re-assign the 'useless' variable so that it now holds an Array value (String.split() returns an Array). When you resume the

Re: Weird Javascript error in continuations

2006-07-25 Thread Mark Lundquist
On Jul 25, 2006, at 7:34 AM, Toby wrote: I just came across a very strange error, possibly a bug in Cocoon! Nope, as Jason explained, this is the correct behavior. The cocoon.createPageLocal() method might help you, see here: http://cocoon.apache.org/2.1/userdocs/flow/api.html

Continuations loosing state

2006-05-17 Thread Berin Loritsch
It seems that when I use continuations that it is losing a lot of state.  My method and environment sets up a lot of information, but all of it is lost every time I resume the continuation.  Yet with CForms it seems to save state properly.  What gives?  Is there some manual method of saving

Re: Continuations loosing state

2006-05-17 Thread Simone Gianni
Hi Berin, what do you mean with state? Could you post an example of code and point out the unexpected behaviour? Simone Berin Loritsch wrote: It seems that when I use continuations that it is losing a lot of state. My method and environment sets up a lot of information, but all

Re: Continuations loosing state

2006-05-17 Thread Berin Loritsch
Simone Gianni wrote: Hi Berin, what do you mean with state? Could you post an example of code and point out the unexpected behaviour? I decided to work without them so the code is now gone.  However, as an example, I had an object called CountryHotTopics which had a list of tags and

continuations

2006-02-13 Thread Jan Hoskens
Hi, I have a flow in which I create a form. When this form is displayed, I like to keep the continuation to stay alive for as long as the user is filling in that form (which can take more than one hour, depends on how many times the user is refilling his cup of tea or coffee, and how many

Re: continuations

2006-02-13 Thread Gunter D'Hondt
done that trick also for a few sites but major problem here might consists that the client browser must have javascript enabled (to force the reload of the frame) and it must support frames (which is ugly) or iframes (which is IE only) can't you just always keep the continuations alive; so

Re: continuations

2006-02-13 Thread Jan Hoskens
and supported by more browsers (ie 3.0+, nn 6.0+, moz 1.0+, ff 1.0+ , op 4.0+), besides this our customers mostly use IE 6 or up with javascript enabled (needed in other webapps we use). can't you just always keep the continuations alive; so setting no session timeouts; or you might even

Re: continuations

2006-02-13 Thread Fabrizio Sitzia
therefore defined a timeout of 4 hours, as follows: - In cocoon.xconf, I set the continuations-manager's time-to-live attribute to 1440 (4 hours * 3600 seconds * 1000 milliseconds :-) I also set the session-bound-continuations attribute to true, as there is no point leaving continuations around

Re: continuations

2006-02-13 Thread Gunter D'Hondt
I don't want my sessions/continuations to have long time-out periods for security reasons. It's ok to have them log in again if their session is timed out after eg a half hour. But then again, when they are editing a form, this might take some time, and the responsibility of keeping

Re: continuations

2006-02-13 Thread Jan Hoskens
Gunter D'Hondt wrote: I don't want my sessions/continuations to have long time-out periods for security reasons. It's ok to have them log in again if their session is timed out after eg a half hour. But then again, when they are editing a form

JavaScript continuations help

2006-01-28 Thread Duncan McGregor
Hi, hoping someone can help. I'm running a session at www.spaconference.org on scripting in Java applications. I'm using Cocoon as an example of using a scripting language to provide a feature (continuations for web flow) not present in Java. I've your very good examples of using

Re: JavaScript continuations help

2006-01-28 Thread Duncan McGregor
wrote: Hi, hoping someone can help. I'm running a session at www.spaconference.org on scripting in Java applications. I'm using Cocoon as an example of using a scripting language to provide a feature (continuations for web flow) not present in Java. I've your very good examples of using

Re: JavaScript continuations help

2006-01-28 Thread Ralph Goers
(continuations for web flow) not present in Java. I've your very good examples of using cocoon.sendPageAndWait, but grep as I might through the source I cannot find the definition of sendPageAndWait in JavaScript. Please would someone point me in the right direction. Thanks in anticipation

Continuations and site indexing

2005-11-22 Thread Neil
Hi, In reading about Cocoon and its use of control flow, I wondered about the implications of continuations for indexing of Cocoon-based sites by search engines, or by advertising services such as Google's AdSense (which require static URLs). Wouldn't the presence of a page-specific continuation

Re: Continuations and site indexing

2005-11-22 Thread Bertrand Delacretaz
Le 22 nov. 05, à 12:24, Neil a écrit : ...In reading about Cocoon and its use of control flow, I wondered about the implications of continuations for indexing of Cocoon-based sites by search engines, or by advertising services such as Google's AdSense (which require static URLs). Wouldn't

RE: Expired continuations

2005-09-12 Thread Stuart Thorne
with invalid continuations, e.g. generate a 'session expired' page or something similar. Thanks, Stu -Original Message- From: Gerry Kaplan [mailto:[EMAIL PROTECTED] Sent: 11 September 2005 16:59 To: users@cocoon.apache.org Subject: Expired continuations Is there a document or an example

Expired continuations

2005-09-11 Thread Gerry Kaplan
Is there a document or an example somewhere that shows how to handle an expired continuation. If the continuation expires and the user tries to continue their work, they get an ugly error page. How can I capture that error? Is it in the flow or in a sitemap? Thanks!! smime.p7s Description:

Re: Expired continuations

2005-09-11 Thread Jason Johnston
in the sitemap. You can use the exception selector within your handle-errors section to catch invalid continuations. The main sitemap that ships with the Cocoon distro contains an example of this; here's a snippet from that sitemap: !--+ | At the very end of a pipeline, you can catch the errors

RE: Expired continuations

2005-09-11 Thread Gerry Kaplan
Thanks much!! This is just what I needed. Gerry -Original Message- From: Jason Johnston [mailto:[EMAIL PROTECTED] Sent: Sunday, September 11, 2005 12:44 PM To: users@cocoon.apache.org Subject: Re: Expired continuations Gerry Kaplan wrote: Is there a document or an example somewhere

Mail and continuations

2005-08-05 Thread Marc Salvetti
Hello, i'm trying to send mails that contains link with continuation-id, and there is 2 things i don't understand. First i tried the following link in my jx template : a href=continue.html?continuation-id=#{$cocoon/continuation/id}continue.html?continuation-id=#{$cocoon/continuation/id}/a I

Re: Mail and continuations

2005-08-05 Thread Aurélien DEHAY
Marc Salvetti wrote: Thanks for the answer Aurélien, there is 2 situations where i send a mail with a continuation : on the opening of a new user account, a mail is sent to the user with this link so i can be sure of the validity of the email adress before saving the new account. My choice

Re: Mail and continuations

2005-08-05 Thread Marc Salvetti
to store anything, the continuation does it for you. And in my case, there is very few continuations likely to live together in memory, and the amount of data stored in memory is very small (only one small dom object and a few strings). Marc

Re: Authentification et continuations

2005-06-22 Thread John S.Washington
Merci, ça me rassure qu'il y ait quelqu'un qui fasse comme ça :) Concernant le problème d'URL, si je comprends bien tu parles du cas de d'echec du login ? : L'url sera du type .../acceuil.html au lieu de .../login.html . C'est vrai que cela peut poser problème, j'ai déjà à peu près le même cas

Continuations in Forms sample

2005-06-13 Thread Joshua Schairbaum
; I've cut down on some of the validation in the definition and template! files, but I can't see where I've cut out anything pertinent to continuations./p pnbsp;/p pSpecifically, I don't understand the section of the sitemap where it talks about starting a flowscript scenario. nbsp; How do I access

revised - Continuations in Forms sample

2005-06-13 Thread Joshua . Schairbaum
cut down on some of the validation in the definition and template files, but I can't see where I've cut out anything pertinent to continuations. Specifically, I don't understand the section of the sitemap where it talks about starting a flowscript scenario.   How do I access the continuation

Re: revised - Continuations in Forms sample

2005-06-13 Thread Joshua . Schairbaum
to add/remove a row: No function nor continuation given in map:call function...  I've cut down on some of the validation in the definition and template files, but I can't see where I've cut out anything pertinent to continuations. Specifically, I don't understand the section of the sitemap where

Problems with the usage of bookmarks and continuations

2005-06-09 Thread Roberto Pierpaoli
-- map:match pattern= map:call function=main/ /map:match !-- use JXtemplate to generate page content -- map:match pattern=*.jx map:generate type=jx src=documents/{1}.jx/ map:serialize type=xhtml/ /map:match !-- .kont URLs are generated by the Flow system for continuations

Re: Problems with the usage of bookmarks and continuations

2005-06-09 Thread Alexander Malic
LIST users@cocoon.apache.org cc Subject Problems with the usage of bookmarks and continuations Details: * Cocoon 2.1.7 standalone * JDK 1.5.0_03 * Windows 2000 SP4 Is there a way to send to the browser the id of the continuation created by the sendPageAndWait method? I have realize

Problems with Continuations in Flowscript

2005-06-08 Thread Roberto Pierpaoli
Details: * Cocoon 2.1.7 standalone * JDK 1.5.0_03 * Windows 2000 SP4 I have made a small example to test the use of continuations, it is made of a simple counter that is incremented each time the user presses the count button, then, when the stop button is pressed, the result page

  1   2   >