cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From H.vanderLin...@MI.unimaas.nl
Subject Flow does not proceed to cocoon.sendpage()
Date Fri, 26 Dec 2003 21:03:05 GMT
Hi,

I know I've read about this somewhere but I can't find it any more. When I
run the flowscript below I see the result of the last print() statement, but
cocoon does not proceed to execute the pipeline, instead I get a blank page
with a continuation ID as URL. What is wrong?

cocoon.load("resource://org/apache/cocoon/woody/flow/javascript/woody2.js");
function myFlowScript() {
    var form = new Form("content/myWoodyFlowDef.xml");
		var finished = false;
		var errMsg = "";

		while(!finished) {
			print ("before form" + new java.util.Date());
    	var model = form.getModel();

    	form.showForm("myWoodyFlow.form", { "message" : errMsg });

	if (model.data = valid) {
				print("valid form");
				finished = true;
			}
			if (!finished) {
				errMsg = "error, data is not valid";
			}
			else {
				errMsg = "";
			}
			print ("finished = " + finished + ", " + errMsg +
"-");
		} // end while

		print("after while");
    cocoon.sendPage("login-success-pipeline");
}

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


Mime
View raw message