cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "JD Daniels" ...@solarwinds.com>
Subject Invalid Continuation ID
Date Wed, 11 Jun 2003 22:16:48 GMT
RE: Calling Actions from the Flow with JavascriptThis is driving me nutz. I
Get invalid continuation ID when I submit the form.
ie,
org.apache.cocoon.components.flow.InvalidContinuationException: The
continuation ID 49461467281b3b7b74454065470a817873745d26 is invalid.

This is my first stab at flow, and so far I am running three days :(
Using cocoon2.1M3-dev cvs from June 11 9:00 am
Tomcat 1.1.24lejdk14
Java Sun SDK 1.4.0_2

I have Searched the mail archives, and found two discussions, but not any
answers.

JS:
cocoon.load("resource://org/apache/cocoon/components/jxforms/flow/jxForm.js"
);

function loginForm(form)
{
 var user = "";
 var pass = "";
 var model = {
  username: "",
  password: ""
 };
 form.setModel(model);
 form.sendView("jxforms/Login.xml",
                  function(form) {
        if (empty(model.username)) {
            form.addViolation("/username", "Please Enter Your Username.");
        }
        if (empty(model.password)) {
            form.addViolation("/password", "Please Enter Your Password.");
        }
    });
    form.finish("do-login.xml", {username:user, password:pass});
}

SiteMap:

   <map:match pattern="manager">
    <map:call function="jxForm"/>
   </map:match>

   <map:match pattern="Login.form">
    <map:call function="jxForm">
     <map:parameter name="function" value="loginForm"/>
     <map:parameter name="id" value="manager-login"/>
     <map:parameter name="validator-schema-ns"/>
     <map:parameter name="validator-schema"/>
     <map:parameter name="scope" value="request"/>
    </map:call>
   </map:match>

   <map:match pattern="do-login.xml">
    <map:act type="auth-login">
     <map:parameter name="handler" value="userhandler"/>
     <map:parameter name="username" value="{request:username}"/>
     <map:parameter name="password" value="{request:password}"/>
     <map:redirect-to uri="index.xml"/>
    </map:act>
    <map:generate src="resources/views/auth/LoginFailed.xml"/>
    <map:transform src="resources/styles/document2html.xsl"/>
    <map:serialize/>
   </map:match>

   <map:match pattern="jxforms/*.xml">
    <map:generate  type="jxforms" src="resources/views/jxforms/{1}.xml"/>
    <map:transform type="jx"/>
    <map:transform type="xalan" src="resources/styles/form2html.xsl"
label="debug1"/>
    <map:transform type="xalan" src="resources/styles/jxforms2html.xsl" />
    <map:transform type="xalan" src="resources/styles/document2html.xsl"
label="debug1"/>
    <map:serialize type="html" />
   </map:match>

Arg.


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


Mime
View raw message