You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by re...@softwareag.com on 2004/12/13 09:46:37 UTC
FlowScript: cocoon.createSession() is not a function
I am using Cocoon 2.1.5.1 and got the following problem:
FlowScript: search
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js"
);
function search() {
var form = new Form("forms/search_definition.xml");
form.showForm("search-display");
var collection = "Crawler";
var pagesize = "5";
var pagestart = "1";
var model = form.getModel();
cocoon.createSession();
and the the following error:
org.apache.avalon.framework.CascadingRuntimeException: createSession is
not a function
cause: TypeError: createSession is not a function
Why i cant use the createSession function?
Is it written in another way, or do I have to change any configuration?
Thanks for any help
Reto Peter
Re: FlowScript: cocoon.createSession() is not a function
Posted by Bertrand Delacretaz <bd...@apache.org>.
Le 13 déc. 04, à 09:46, <re...@softwareag.com> a écrit :
> ... cocoon.createSession();
>
> and the the following error:
> org.apache.avalon.framework.CascadingRuntimeException: createSession
> is not a function
> cause: TypeError: createSession is not a function
>
> Why i cant use the createSession function?
> Is it written in another way, or do I have to change any configuration?
You don't need it anymore in 2.1.5.1, a session is created
automatically when a global javascript variable is created.
-Bertrand
Re: FlowScript: cocoon.createSession() is not a function
Posted by george georgovassilis <ge...@open.gr>.
I can't see the createSession method in the documentation
(http://localhost:8888/docs/userdocs/flow/api.html#session) so I guess
it's not there. I think you don't need to call it anyway, just setting
an attribute (cocoon.session.setAttribute) should automatically create
it, if it has not already been done so.
Hope that helps
G.
> I am using Cocoon 2.1.5.1 and got the following problem:
>
> FlowScript: search
> cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form.js");
>
> function search() {
> var form = new Form("forms/search_definition.xml");
> form.showForm("search-display");
> var collection = "Crawler";
> var pagesize = "5";
> var pagestart = "1";
> var model = form.getModel();
> cocoon.createSession();
>
> and the the following error:
> org.apache.avalon.framework.CascadingRuntimeException: createSession
> is not a function
> cause: TypeError: createSession is not a function
>
> Why i cant use the createSession function?
> Is it written in another way, or do I have to change any configuration?
>
> Thanks for any help
>
> Reto Peter
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org