cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Collen <colle...@umn.edu>
Subject Re: Flow does not proceed to cocoon.sendpage()
Date Sat, 27 Dec 2003 02:12:35 GMT
H.vanderLinden@MI.unimaas.nl wrote:

>Sorry, fixed this myself. It turns out I had the "login-success-pipeline"
>redirect to another page. When I changed it to the usual generate/transform
>lines it worked.
>
>Bye, Helma
>
>  
>

Be careful! :

if (model.data = valid) {


Assignment generally evaluates to true.


Tony




>>-----Original Message-----
>>From: H.vanderLinden@MI.unimaas.nl 
>>[mailto:H.vanderLinden@MI.unimaas.nl] 
>>Sent: Friday, 26 December 2003 22:03
>>To: users@cocoon.apache.org
>>Subject: Flow does not proceed to cocoon.sendpage()
>>
>>
>>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/javascrip
>>t/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
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>  
>



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


Mime
View raw message