Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Joerg Heinicke
On 10.10.2007 13:51 Uhr, Josh2007 wrote: I use request.getSession() instead of objectModel.session and replace objectModel.session.setAttribute("stream", stream) with session.setAttribute("stream", stream) and it works. Just to complete the picture ... The manager is only for retrieving Cocoo

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Josh2007
. > Furthermore I use objectModel to get sitemap instance and do > objectModel.session.setAttribute(...) but I'm not sure about it's the good > way. > > Here's my scriptAction, if you have time to take a look. > Thanks, > > Josh > > > // streamToSession > /* > ge

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Josh2007
Model to get sitemap instance and do objectModel.session.setAttribute(...) but I'm not sure about it's the good way. Here's my scriptAction, if you have time to take a look. Thanks, Josh // streamToSession /* get xforms post from stream and store the result in session attribute

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Joerg Heinicke
.html On 10.10.2007 7:44 Uhr, Josh2007 wrote: Thanks for the information, I took a look at ScriptAction's source code. I have a better understanding of how it works but it seems I need to import in my scriptAction other components and functions (DOMParser, session.setAttribute...). Actuall

Re: How to access cocoon object from javascript scriptAction?

2007-10-10 Thread Josh2007
Thanks for the information, I took a look at ScriptAction's source code. I have a better understanding of how it works but it seems I need to import in my scriptAction other components and functions (DOMParser, session.setAttribute...). Actually I'm trying to adapt my flowscript

Re: How to access cocoon object from javascript scriptAction?

2007-10-09 Thread Joerg Heinicke
On 09.10.2007 17:13 Uhr, Josh2007 wrote: I need to access cocoon object from a javascript scriptAction to make use of session, request... functions. The ScriptAction works more like a usual Cocoon Java component than like flowscript. Therefore you have the ObjectModel available which is

How to access cocoon object from javascript scriptAction?

2007-10-09 Thread Josh2007
Hi all, I need to access cocoon object from a javascript scriptAction to make use of session, request... functions. It seems the only way to access cocoon object is to create a flowscript. Is there another solution as I don't want to redirect to another pipeline after the script is perf

Re: ScriptAction

2007-02-01 Thread Tobia
Tobia wrote: > Do script actions work in Cocoon 2.1.8? Nevermind. It appears to be an incompatibility between BSF 2.3.0 and Rhino 1.5r4, but it's fixed in Cocoon 2.1.10 Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For add

ScriptAction

2007-02-01 Thread Tobia
rather bare Error 500 page and the following exception shows up in the terminal where I started Cocoon (but not in the log files!) 13:12:18.472 WARN!! Error for /scriptaction-test java.lang.NoSuchMethodError: org.mozilla.javascript.Context.getDebuggableEngine()Lorg/mozilla/javascript/debug

ScriptAction

2005-01-06 Thread Ben Anderson
Hi, I'm trying to use ScriptAction documented here: http://cocoon.apache.org/2.1/userdocs/actions/script-action.html but it's not working right. Is anyone using this or know if it works? I'd like to be able to write actions w/out the need to recompile everytime. The documentat

ScriptAction usage

2004-04-18 Thread Oscar Picasso
quick prototyping of Action, realizing an Action in a script language instead of java language." Does it mean that for any reason the use of ScriptActions is not advised for production. On the "Bug/Caveats" section I also read: "Using ScriptAction relies heavily on the settin