Re: svn commit: r169150 - /cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java

2005-05-25 Thread Christopher Oliver
[EMAIL PROTECTED] wrote: Author: lgawron Date: Sun May 8 12:25:12 2005 New Revision: 169150 URL: http://svn.apache.org/viewcvs?rev=169150view=rev Log: share root rhino scope Modified: cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java Modified:

Re: svn commit: r169150 - /cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHelper.java

2005-05-25 Thread Christopher Oliver
FYI it is not thread-safe to use a static rhino scope. Instead the caller of the template should should pass this from his own session. I think this same bug also exists in the CForms implemenation but I'm not sure. Regards, Chris [EMAIL PROTECTED] wrote: Author: lgawron Date: Sun May 8

Re: svn commit: r169150 - /cocoon/trunk/src/java/org/apache/cocoon/environment/TemplateObjectModelHe

2005-05-25 Thread Christopher Oliver
through the prototype link. HTH, Chris Christopher Oliver wrote: FYI it is not thread-safe to use a static rhino scope. Instead the caller of the template should should pass this from his own session. I think this same bug also exists in the CForms implemenation but I'm not sure. LOL. I based my

Re: JS versus Java [was Re: FOM inconsistency (was Re: [VOTE] Unrestricting

2005-02-28 Thread Christopher Oliver
You know what? I'm fed up with this discussion, and will start writing a new implementation of the JS flowscript engine. People will have the choice. And Chris will stop popping up as soon as someone touches his code. Sylvain Very nice display of community leadership... I have no problem with

Re: JS versus Java [was Re: FOM inconsistency (was Re: [VOTE] Unrestricting

2005-02-27 Thread Christopher Oliver
Christopher Oliver wrote: Sorry to pick on Sylvain again, but he consistently exhibits a common behavior of Java programmers with respect to JavaScript. Because JS syntax is so similar to Java they seem to feel a JS API is somehow better the more it resembles what it would look like

Re: JS versus Java [was Re: FOM inconsistency (was Re: [VOTE] Unrestricting

2005-02-27 Thread Christopher Oliver
Christopher Oliver wrote: At any rate, I fail to understand how a massively non-backward compatible change can be made which was not even relevant to the subject voted on. yes please, can we discuss this again (with a final vote) as I'm not really convinced about the pros of this change. As I

Re: JS versus Java [was Re: FOM inconsistency (was Re: [VOTE] Unrestricting

2005-02-27 Thread Christopher Oliver
This is a tradeoff: by combining properties you get easer access to commonly used properties, but however at the cost of overloading the identifiers at times. Note that it's always possible to provide an escape mechanism to disambiguate such cases, even if DOM didn't do that in this case.

Re: JS versus Java [was Re: FOM inconsistency (was Re: [VOTE] Unrestricting

2005-02-27 Thread Christopher Oliver
Christopher Oliver wrote: snip/ Mmmh... you're right, there _wasn't_ such a property before my changes. This explains the lengthy wrapping code that was in FOM_Request that exposed only functions and no properties except the request parameters (or attributes for session and context). Now

JS versus Java [was Re: FOM inconsistency (was Re: [VOTE] Unrestricting the FOM)]

2005-02-26 Thread Christopher Oliver
Sorry to pick on Sylvain again, but he consistently exhibits a common behavior of Java programmers with respect to JavaScript. Because JS syntax is so similar to Java they seem to feel a JS API is somehow better the more it resembles what it would look like if it was written in Java. The

Re: Remove of the old compiling classloader implementation - Problems

2005-02-22 Thread Christopher Oliver
Oh, really? The license on my code is (and always was) MIT (i.e. more lenient than Apache) . If there is a problem with that then you also have a problem with Torsten's project (which is obviously based on my code). I don't see any reason why you shouldn't remove it in favor of Torsten's

Re: [RFC] JXTG Refactoring

2004-12-16 Thread Christopher Oliver
If you ask me, this is mainly a semantic problem, not a technical one. If a template is not called from a (Javascript) flowscript, there is no FOM, and therefore no FOM variables are available in JXTG. For the case where it _is_ called from a flowscript, then the FOM is and IMO should be

Re: JXTemplateGenerrator

2004-12-12 Thread Christopher Oliver
Christopher Oliver wrote: snip/ Let's face it: your code is dense as a neutron star and dense of comments and tests as the the outter space around one. For what it's worth I do like _your_ writing style above. snip Your respect/care for the complexity of the social dynamics

Re: JXTemplateGenerator

2004-12-11 Thread Christopher Oliver
Christopher Oliver wrote: It's not personal, Bertrand. If someone does good work or makes a valid point I will give them proper respect. If not, well, I'm not teaching grade school and it's not my job to sugar coat it. Really? Wasn't that you that disliked the way Pierpaolo and myself

JXTemplateGenerator

2004-12-10 Thread Christopher Oliver
I recently took a look at this mailing list after I happened to talk to Stefano in person (he was in LA) and noticed a _few_ posts about refactoring JXTemplateGenerator. Of course you can do what you like, but just so you know, here is my point of view: Obviously it would have been easy to

Re: JXTemplateGenerator

2004-12-10 Thread Christopher Oliver
Le 10 déc. 04, à 17:29, Christopher Oliver a écrit : ...The funniest post of all was this http://marc.theaimsgroup.com/?l=xml-cocoon-devm=110210971210386w=2 http://marc.theaimsgroup.com/?l=xml-cocoon-devm=110210971210386w=2. I mean, give me break. That is just plain silly Sorry

Re: Cocoon JXTG question

2004-06-27 Thread Christopher Oliver
I'm no longer particpating in Cocoon development. Please post any questions regarding Cocoon to the dev mailing list. Thanks, Chris [EMAIL PROTECTED] wrote: Hello, sorry to bother you in private, but you're my last hope of finding the solution to my problem. I've posted my problems on the

Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation JXTemplateGenerator.java

2004-04-25 Thread Christopher Oliver
Ugo Cei wrote: Il giorno 24/apr/04, alle 23:35, [EMAIL PROTECTED] ha scritto: coliver 2004/04/24 14:35:35 Modified:src/java/org/apache/cocoon/generation JXTemplateGenerator.java Log: Allow a nodeset to be returned as the result of xpath evaluation Before

Re: CForms flowscript API musings

2004-04-25 Thread Christopher Oliver
Bruno Dumon wrote: I'm a bit annoyed by the current status of our flowscript API's for CForms. I'll leave the intro for what it is and just jump right into it: Form.showForm() === I find that this function hides too much of how a form is processed, and stands in the way of doing more

Re: JXTemplate macro problem (bug)

2004-04-24 Thread Christopher Oliver
I've checked in a fix for this. The next event after a /jx:parameter was being ignored. The bug was unnoticeable in many cases however because in such cases that event was just whitespace. Thanks for reporting the problem. Chris Bruno Dumon wrote: While using the template.jx macros for

Re: JXTG Xpath returning NodeList

2004-04-24 Thread Christopher Oliver
This is due to the behavior of JXPath. If you want to process a node set you need forEach: ?xml version=1.0 encoding=utf-8? page xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; content jx:forEach select=#{document/root/path/fileset}/ #{.} /jx:forEach

Re: JXTG Xpath returning NodeList

2004-04-24 Thread Christopher Oliver
Tony Collen wrote: Leszek Gawron wrote: Say you have this DOM you pass to a template: ?xml version=1.0? root property file=user.properties / path id=all.cp pathelement location=${build.classes} / fileset dir=${cocoon.lib} include name=*.jar/ /fileset fileset

Re: JXTG jx:attribute

2004-04-24 Thread Christopher Oliver
Leszek Gawron wrote: Sorry to bother you privately but I did not get the answer on cocoon group and I see you're the main JXTG developer. My question is: Is there any real reason that jx:attribute is not implemented? Something that would work as xsl:attribute or xsp:attribute to allow generation

Re: [RT] Use of flowscript or the pyramid of contracts (was Re:[RT] Checked exceptions considered harmful)

2004-04-23 Thread Christopher Oliver
There's not enough information in that bug report to determine the problem. Can you try to debug why a URLSource (with exists() == true) is being returned by the source resolver for the (presumably nonexistent) resource org.java? I had no luck debugging this since I can't recreate the problem

Re: Handling Iterators in JXTG

2004-04-21 Thread Christopher Oliver
Leszek Gawron wrote: Am I wrong or there is no way to handle iterators in JXTG? One can use forEach for collections but I sometimes would like to pass and iterator to a view to process larger result sets. In Hibernate you can: var list = session.createQuery(from LargeTable).list() which creates

Re: Handling Iterators in JXTG

2004-04-21 Thread Christopher Oliver
Ive just committed a fix for this. Regards, Chris Leszek Gawron wrote: On Wed, Apr 21, 2004 at 12:45:46PM -0700, Christopher Oliver wrote: Leszek Gawron wrote: Am I wrong or there is no way to handle iterators in JXTG? One can use forEach for collections but I sometimes would like

Re: Modular database component

2004-04-20 Thread Christopher Oliver
Reinhard Poetz wrote: snip I already said in several mails that we should reduce the recommended options: 1.) Use O/R-mapper if possible 2.) if you only have publishing tasks use the sqlTransformer 3.) If the learning curve for an O/R-mapper is too steep for you take (In my opinion

Re: flowscript bizData AOP

2004-04-18 Thread Christopher Oliver
Ugo Cei wrote: Il giorno 17/apr/04, alle 20:28, Christopher Oliver ha scritto: I think you can use a combination of session attributes and jx macros to get the effect you want, e.g. // Flow script function toSAX(str, consumer) { ... } cocoon.session.setAttribute(stringToSAX, toSAX); So

Re: #{//foo/bar} doesn't work within forEach!

2004-04-18 Thread Christopher Oliver
No. That won't work. With the current implementation of JXTG XPath evaluation of absolute paths with a forEach only works if the expression passed to forEach is an XPath expression. Does this work: jx:forEach var=something items=#{myList} #{//foo/bar} /jx:forEach Chris Stephan Coboos

Re: [cforms] Weird behaviour of flow and fb:javascript binding

2004-04-18 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: I can't say that I fully understand your problem, but I just looked at o.a.c.f.util.JavascriptHelper, and that appears to have some major bugs. If it isn't called from a flow script it uses a static JavaScript object as the top level scope

Re: flowscript bizData AOP

2004-04-17 Thread Christopher Oliver
I think you can use a combination of session attributes and jx macros to get the effect you want, e.g. // Flow script function toSAX(str, consumer) { ... } cocoon.session.setAttribute(stringToSAX, toSAX); function myPage() { ... sendPage(page.html, {...}); } // template jx:macro

Re: [cforms] Weird behaviour of flow and fb:javascript binding

2004-04-16 Thread Christopher Oliver
I can't say that I fully understand your problem, but I just looked at o.a.c.f.util.JavascriptHelper, and that appears to have some major bugs. If it isn't called from a flow script it uses a static JavaScript object as the top level scope (where JS global variables are created), but does not

Re: [cforms] Clear validation error on a widget?

2004-04-14 Thread Christopher Oliver
I just committed a fix to ScriptableWidget to allow you to pass a null validation error. HTH, Chris Mark Lundquist wrote: On Apr 14, 2004, at 12:55 PM, Joerg Heinicke wrote: On 14.04.2004 21:48, Mark Lundquist wrote: As I wrote before I'm nearly sure it works for me with woody2.js. How are

Re: CForms v2 and bizData strange handling

2004-04-06 Thread Christopher Oliver
Leszek Gawron wrote: snip none of these is strictly connected to the form (the only one is the rowset displayed as the form controls invoke actions that change this part of view). In v2 I have to do something like this: form = new Form( definition ); form[ globalAppContext ] =

Re: CForms v2 and bizData strange handling

2004-04-06 Thread Christopher Oliver
Tim Larson wrote: On Tue, Apr 06, 2004 at 12:30:03PM +0200, Leszek Gawron wrote: In v2 I have to do something like this: form = new Form( definition ); form[ globalAppContext ] = getGlobalAppContext(); form[ user ] = getLoggedInUser(); form[ userContext ] = getContextForUser(

Re: disabling widgets

2004-04-06 Thread Christopher Oliver
Bruno Dumon wrote: On Mon, 2004-04-05 at 13:28, Sylvain Wallez wrote: snip/ So, I propose the following changes to Cocoon forms: - add a state to widgets (enabled/disabled/hidden). - move to a generator approach. WDYT? For the generator-approach, a good starting point would be to commit

Re: disabling widgets

2004-04-06 Thread Christopher Oliver
Bruno Dumon wrote: On Tue, 2004-04-06 at 18:19, Christopher Oliver wrote: Bruno Dumon wrote: snip For the generator-approach, a good starting point would be to commit it to CVS and add or change an example to show how it works. I've done this for the V2 flowscript sample

Re: Groovy support in Cocoon

2004-04-05 Thread Christopher Oliver
will again unwind the current JVM stack, but this time there's no need to capture it. Chris Christopher Oliver wrote: Stephan Michels wrote: Am Mo, den 05.04.2004 schrieb Christopher Oliver um 4:42: The current implementation needs some work to qualify as generalized Java continuations

Re: Scheme Continuations vs Brakes Continuations was Re: Groovy support in Cocoon

2004-04-05 Thread Christopher Oliver
Stephan Michels wrote: First, I'm glad to hear more input ;-) Your mail took some time to parse it. Am Mo, den 05.04.2004 schrieb Christopher Oliver um 18:47: OK, IIUC there are three modes of execution of the instrumented code: 1) isCapturing During this mode the JVM call stack is unwound

Re: Call continuations from flow instead of sitemap

2004-04-04 Thread Christopher Oliver
Uh, thanks. But Leszek is talking about the JS function handleContinuation() defined in fom_system.js - not the Java method that you point out. That method is not accessible to flowscripts. Chris Tony Collen wrote: Tony Collen wrote: Christopher Oliver wrote: Leszek Gawron wrote

Re: Call continuations from flow instead of sitemap

2004-04-04 Thread Christopher Oliver
Leszek Gawron wrote: On Sat, Apr 03, 2004 at 01:58:51PM -0800, Christopher Oliver wrote: These ContinuationsManager API should _not_ be used in a flowscript. Use the sitemap to invoke your continuation, please. Is it possible to solve your problem by using a helper function to send the page

Re: Groovy support in Cocoon

2004-04-04 Thread Christopher Oliver
Stefano Mazzocchi wrote: Antonio Gallardo wrote: Hi: Hi: Some of us wanted to see Groovy support in Cocoon. Now we can play a little with Groovy using the recently added support for Groovy script generator under the BSF block. More info about how to use it is here:

Re: Groovy support in Cocoon

2004-04-04 Thread Christopher Oliver
for generalized Java continuations rather than hack it into the language. -Brian On Apr 4, 2004, at 2:32 PM, Christopher Oliver wrote: Stefano Mazzocchi wrote: Antonio Gallardo wrote: Hi: Hi: Some of us wanted to see Groovy support in Cocoon. Now we can play a little with Groovy using the recently

Re: Call continuations from flow instead of sitemap

2004-04-03 Thread Christopher Oliver
These ContinuationsManager API should _not_ be used in a flowscript. Use the sitemap to invoke your continuation, please. Is it possible to solve your problem by using a helper function to send the page: function sendPageAndWait(uri, biz, ttl) { cocoon.response.setHeader( Expires, -1 );

Re: Call continuations from flow instead of sitemap

2004-04-03 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: These ContinuationsManager API should _not_ be used in a flowscript. Use the sitemap to invoke your continuation, please. Although I found this hacky, is there any technical reasons that prevents this to work? Sylvain Yes, the FOM_Cocoon

Re: [BUG?] jx:import doesn't work in JXTemplateTransformer

2004-04-01 Thread Christopher Oliver
Stephan Coboos wrote: Is it a bug? Should I post it in the bugtracker? It's a bug. The ServiceManager isn't initialized when you run JXTemplateGenerator as a transformer. I'll commit a fix shortly. Chris

Re: Why does JXTemplateGenerator use FOM objects?

2004-04-01 Thread Christopher Oliver
http://marc.theaimsgroup.com/?t=107083319900025r=1w=2 Carsten Ziegeler wrote: Just curious, I just noticed that the JXTemplateGenerator stores FOM objects in the context that can then be addressed by the expressions, like this: cocoon.put(request,

Re: forms proposal: widget attributes

2004-04-01 Thread Christopher Oliver
Sylvain Wallez wrote: Bruno Dumon wrote: I found the possibility to add arbitrairy attributes to widgets, made possible in the v2 forms flowscript integration, to be a quite nice feature. However, that feature only exists in the javascript model. This is a problem when one wants to pass back the

Re: [BUG?] jx:import doesn't work in JXTemplateTransformer

2004-03-30 Thread Christopher Oliver
Sounds like a bug. Can you post the stack trace? Thanks, Chris Stephan Coboos wrote: Hello, the element jx:import uri=.../ doesnt work in JXTemplateTransformer. If I'am using this element I got a java.lang.NullPointerException. In the JXTemplateGenerator instead it works fine. Is it a bug?

Re: java continuations

2004-03-29 Thread Christopher Oliver
Torsten Curdt wrote: Dear friends and folks, as already announce on the PMC list we now have another flow implementation for java! Stephan completed my proof-of-concept and replaced the Brakes stuff by an own implementation. So we are now fully in ASL land. Cool. We would like to commit this

block documentation (was RE: [RT] On building on stone)

2004-03-24 Thread Christopher Oliver
Will the new block system allow plugging in a block's documentation? One of the things I find most annoying about adding code to the Cocoon Forms block is that there seems to be no reasonable place to put documentation - or am I missing something? Chris -Original Message- From: Stefano

Scripting Languages (was Re: Less is more... or less? (was Re: v2 forms flowscript example))

2004-03-22 Thread Christopher Oliver
Sylvain Wallez wrote: Vadim Gritsenko wrote: Sylvain Wallez wrote: Why is there a need to have a different API for widgets when used from JS than when used from Java? IMO, this is arbitrarily limiting the features available in flowscript. But isn't this our design approach? If I remember

Re: v2 forms flowscript example

2004-03-19 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Tim Larson wrote: In: cocoon-2.1/src/blocks/forms/samples/v2/forms_flow_example.js Should this: // 'wid' is a javascript wrapper of the Cocoon Form widget. // // Its subwidgets can be accessed by id. be changed to this: // 'wid

Re: v2 forms flowscript example

2004-03-19 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Sylvain Wallez wrote: Christopher Oliver wrote: Tim Larson wrote: In: cocoon-2.1/src/blocks/forms/samples/v2/forms_flow_example.js Should this: // 'wid' is a javascript wrapper of the Cocoon Form widget. // // Its subwidgets can

Re: JXTG weirdo

2004-03-18 Thread Christopher Oliver
The problem (I think) is that he is trying to use JXTG in a pipeline called from the Form constructor, e.g. var form = new Form(cocoon:/whatever); However, the cocoon variable in JXTG is only set up when the pipeline is called from a Flowscript via cocoon.sendPage*(). Vadim raised this issue

Re: v2 Form.js how does onValidate work?

2004-03-18 Thread Christopher Oliver
Tim Larson wrote: On Thu, Mar 18, 2004 at 02:33:51PM +, Tim Larson wrote: On Wed, Mar 17, 2004 at 02:31:53PM -0800, Christopher Oliver wrote: Tim Larson wrote: On Wed, Mar 17, 2004 at 11:18:35AM -0800, Christopher Oliver wrote: Tim Larson wrote: On Tue, Mar

Re: v2 Form.js how does onValidate work?

2004-03-17 Thread Christopher Oliver
Tim Larson wrote: On Tue, Mar 16, 2004 at 09:16:38PM +, Tim Larson wrote: I am trying to migrate to the v2 Form.js, but I am having trouble understanding how the onValidate handling works. From reading to code it looks to me like it would not work correctly, but the sample form work

Re: v2 forms flowscript example

2004-03-17 Thread Christopher Oliver
Tim Larson wrote: In: cocoon-2.1/src/blocks/forms/samples/v2/forms_flow_example.js Should this: // 'wid' is a javascript wrapper of the Cocoon Form widget. // // Its subwidgets can be accessed by id. be changed to this: // 'wid' is a javascript wrapper of the Cocoon Form widget. //

Re: v2 Form.js how does onValidate work?

2004-03-17 Thread Christopher Oliver
Tim Larson wrote: On Wed, Mar 17, 2004 at 11:18:35AM -0800, Christopher Oliver wrote: Tim Larson wrote: On Tue, Mar 16, 2004 at 09:16:38PM +, Tim Larson wrote: One of the specific questions is in this code: var wk = cocoon.sendPageAndWait(uri, this.formWidget_, fun, ttl); var

Re: [VOTE] Rename Rhino-with-continuations packages

2004-03-08 Thread Christopher Oliver
Steven Noels wrote: On 08 Mar 2004, at 23:09, Stefano Mazzocchi wrote: unless donated by the well-known friendly-neightbor-organization directly, that is. I took the plunge and started talking. See my other mail. /Steven Hopefully that will lead to something productive. However, it still

[VOTE] Rename Rhino-with-continuations packages

2004-03-07 Thread Christopher Oliver
In order to allow the use of Flowscript on the BEA Weblogic and IBM Websphere application servers (and possibly in other environments) I propose that we rename the Rhino packages from org.mozilla to org.cocoondev. The Rhino codebase used in Cocoon is currently hosted on cocoondev.org

Update CocoonForms flowscript API (was Re: [CocoonForms] Code freeze)

2004-03-06 Thread Christopher Oliver
Can we also get rid of the original Woody flowscript API as part of this process (and replace it with the v2 version)? The original was clearly not ready for prime time. -- Chris Reinhard Pötz wrote: In the next few days I'm going to rename Woody to Cocoon Forms. So please don't commit into

Re: Update CocoonForms flowscript API (was Re: [CocoonForms] Code freeze)

2004-03-06 Thread Christopher Oliver
can be called from the macro. Chris Vadim Gritsenko wrote: Christopher Oliver wrote: Can we also get rid of the original Woody flowscript API as part of this process (and replace it with the v2 version)? The original was clearly not ready for prime time. This new API, does it allow creation

RE: Usage of SAXBuffer?

2004-03-05 Thread Christopher Oliver
You could use the JXTemplate generator to do this without Java programming: jx:macro name=iterate jx:parameter name=times/ jx:forEach start=1 end=${times} jx:evalBody/ /jx:forEach /jx:macro -- Chris -Original Message- From: Stephan Coboos [mailto:[EMAIL PROTECTED] Sent:

Re: Usage of SAXBuffer?

2004-03-05 Thread Christopher Oliver
Stephan Coboos wrote: Christopher Oliver wrote: You could use the JXTemplate generator to do this without Java programming: jx:macro name=iterate jx:parameter name=times/ jx:forEach start=1 end=${times} jx:evalBody/ /jx:forEach /jx:macro -- Chris Thank you, Chris. But I need to write my

Re: FlowScript in 2.1.5-dev has gone tango uniform

2004-03-02 Thread Christopher Oliver
Can you try reverting the rhino jar to a previous version and see if that fixes the problem? I may have introduced a regression. Thanks, Chris Jeremy Quinn wrote: Hi All I just upgraded my copy of Cocoon to today's CVS version. A (previously working) site that uses a lot of FlowScript has

Re: [JXTemplate] weird problem w/ formatDate

2004-02-28 Thread Christopher Oliver
I'm unable to recreate this problem. Can you provide more information? -- Chris Mark Lundquist wrote: Hi, (I'm using Cocoon 2.1.3...) I have something like this in a JXTemplate: jx:formatDate value=${theDate} / and it barfs: Cannot format given Object as a Date But if I change the template

Re: cvs commit: cocoon-2.1/src/blocks/slide/samples flow.js

2004-02-25 Thread Christopher Oliver
What error did you get with repository? It is not a JS keyword. Chris [EMAIL PROTECTED] wrote: unico 2004/02/25 01:48:35 Modified:src/blocks/slide/samples flow.js Log: rhino seems to barf on 'repository' keyword Revision ChangesPath 1.12 +1 -2

Re: Flowscript and return to pipeline

2004-02-25 Thread Christopher Oliver
Stephan Coboos wrote: Hello, in some discussions I'd heard that actions and XSP should be more and more replaced by flowscript. I think, this is a good idea because flowscript is a good way to integrate logic parts into an application. But with one thing I cant agree. Why shouldn't it be

Re: Flow problems

2004-02-25 Thread Christopher Oliver
I'm not sure how this got broken in 2.1.4 but one way to fix it is to simply remove the flow-interpreters line from components: map:components map:generators default=file !-- in this example we use JXTemplateGenerator to insert Flow variables in page content -- map:generator

Re: Java continuations with joeq

2004-02-22 Thread Christopher Oliver
Bertrand Delacretaz wrote: Le Samedi, 21 fév 2004, à 17:13 Europe/Zurich, Christopher Oliver a écrit : ...I did some informal tests and it appears to actually be slower than interpreted Rhino (not sure exactly why, perhaps because Rhino bytecodes are higher level), but was significantly

Re: Java continuations with joeq

2004-02-22 Thread Christopher Oliver
Christopher Oliver wrote: Bertrand Delacretaz wrote: Le Samedi, 21 fév 2004, à 17:13 Europe/Zurich, Christopher Oliver a écrit : ...I did some informal tests and it appears to actually be slower than interpreted Rhino (not sure exactly why, perhaps because Rhino bytecodes are higher level

Java continuations with joeq

2004-02-21 Thread Christopher Oliver
I recently took a look at joeq (http://joeq.sourceforge.net/) which is a Java virtual machine written in Java. Included is a reflective Java interpreter that can run on top of an existing Java virtual machine (e.g. Sun JRE). It can interpret class files, but can also delegate some (or all)

Renaming Rhino Packages

2004-02-18 Thread Christopher Oliver
What do you think of renaming the Rhino packages in the cocoondev.org version of Rhino used by Cocoon? It appears both Weblogic and Websphere ship their own versions of Rhino that are exposed to the class loader used by Cocoon. This prevents using flowscript out-of-the-box or at all with these

Re: JXTemplate Generator Variables

2004-02-16 Thread Christopher Oliver
Vadim Gritsenko wrote: Hi all, Documentation [1] states that JXTemplate generator has cocoon.request / cocoon.session / etc variables declared to access request/session/etc. And, that it has request / session / etc variables that also provide access to the similar objects. Now, the issue is

Re: Woody binding of namespaced element

2004-02-16 Thread Christopher Oliver
: Gianugo Rabellino wrote: Christopher Oliver wrote: That is a problem with JXPath. I may be wrong, but if IIRC it doesn't support namespaces properly or at all. Bad bad news. Actually it seems to do selections just fine, but insertions are flawed. OK, time for tricks then :-/ AFAIK, even

Linotype broken

2004-02-13 Thread Christopher Oliver
I noticed the Petstore and Linotype samples were both broken _after_ the release. I'm not sure what caused this but it'd probably be a good idea to test all the samples before releasing next time. BTW Linotype is still broken. Regards, Chris

Re: Woody binding of namespaced element

2004-02-13 Thread Christopher Oliver
That is a problem with JXPath. I may be wrong, but if IIRC it doesn't support namespaces properly or at all. Gianugo Rabellino wrote: ... I still consider myself quite a newbie on Woody, but I'm facing a tough issue. I need to bind a woody form to some namespaced XML (a

Re: No 2.1.2 for download, is that by design?

2004-02-12 Thread Christopher Oliver
IIRC, 2.1.2 contains a Rhino regression (I introduced) that breaks flow completely. Bertrand Delacretaz wrote: Did I miss something, or is there a good reason why 2.1.2 is not available for download anymore on our mirrors? -Bertrand Saw this on lenya-dev: De: Gregor J. Rothfuss [EMAIL

Re: Continuations and memory leaks

2004-02-11 Thread Christopher Oliver
Ugo Cei wrote: Dear friends, I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does not manifest itself if I don't create any continuation, I'm starting to

Re: Continuations and memory leaks

2004-02-11 Thread Christopher Oliver
Do you have global variables in your scripts? Ugo Cei wrote: Christopher Oliver wrote: Ugo Cei wrote: I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does

Re: Continuations and memory leaks

2004-02-11 Thread Christopher Oliver
Ugo Cei wrote: Christopher Oliver wrote: Ugo Cei wrote: I'm experiencing a memory leak in an application we are currently testing, which uses Flowscript and Woody. Since continuations store a reference to local variables, and the memory leak does not manifest itself if I don't create any

Re: Deprecate JXForms? (Was: what is the woody form binding encoding?)

2004-02-11 Thread Christopher Oliver
Vadim Gritsenko wrote: Antonio Gallardo wrote: jxforms are deprecated. if you are starting avoid using jxform. Actually, only xmlform block is officially deprecated (see block.properties). Now, if you think that it should be deprecated, you can start discussion in this thread :-) Vadim

Re: Rhino, setSelectionList and different VMs

2004-02-06 Thread Christopher Oliver
I don't think Rhino supports overloading of jsFunction_xxx(). The two jsFunction_setSelectionList() functions need to be merged into one method. HTH, Chris Steven Noels wrote: Hi, I have an interesting issue that I'd like to see confirmed, since we suspect Rhino behaves differently under

Re: [cforms] new validation: every widget can have a validator

2004-02-05 Thread Christopher Oliver
Sylvain Wallez wrote: snip I made no answer to your recent addition to Woody because of lack of time, but will do it very soon (it contains very interesting stuff). Ok. No pressure. I do think, however, that the flowscript integration should just be an /integration/ and not an extension. By

Re: Are flowscript functions reentrant?

2004-02-02 Thread Christopher Oliver
From your description, sounds like someone extended a class provided by the container which is declared final in Tomcat but not in Jetty. Can you set a breakpoint on VerifyError and find out which class it is? Hunsberger, Peter wrote: Christopher Oliver [EMAIL PROTECTED] writes: sendPage

Re: Are flowscript functions reentrant?

2004-02-02 Thread Christopher Oliver
{ InputStream is = src.getInputStream(); if (is == null) { return null; } ... Hunsberger, Peter wrote: Christopher Oliver [EMAIL PROTECTED] writes: From your description, sounds like someone extended a class provided by the container which

Re: Are flowscript functions reentrant?

2004-02-02 Thread Christopher Oliver
Hunsberger, Peter wrote: Christopher Oliver [EMAIL PROTECTED] asks: sendPage*() is not reentrant in 2.1.3. I believe this has been fixed in 2.1.4-dev. Can you try it? Ok, now have 2.1.4-dev from last night working. It only runs as an expanded EAR file (we deploy Cocoon in an EAR

Re: Are flowscript functions reentrant?

2004-02-02 Thread Christopher Oliver
Hunsberger, Peter wrote: Christopher Oliver [EMAIL PROTECTED] writes: Hunsberger, Peter wrote: Christopher Oliver [EMAIL PROTECTED] asks: sendPage*() is not reentrant in 2.1.3. I believe this has been fixed in 2.1.4-dev. Can you try it? Ok, now have 2.1.4-dev

Re: cvs commit: cocoon-2.1/src/documentation/xdocs/userdocs/flowsitemap.xml

2004-02-01 Thread Christopher Oliver
Feel free to add it.. Tony Collen wrote: Antonio Gallardo wrote: Christopher Oliver dijo: Antonio, that wasn't a typo. It is supposed to indicate one or more. Sorry. I understand now. The + was written in the sense of lex tokens or regular expressions as grep, perl, etc. To me

Re: [flowscript] How to set an integer value in the FlowScript?

2004-01-30 Thread Christopher Oliver
Joerg Heinicke wrote: Christopher Oliver res1cf5x at verizon.net writes: JS Number is a double according to the specification. ScriptableWidget provides coercions that allow you to write: offset.value = 0; See the sample I recently committed. Ok, I had a look

Re: cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/v2 ScriptableWidget.java

2004-01-30 Thread Christopher Oliver
Sorry about that. Thanks for fixing. [EMAIL PROTECTED] wrote: cziegeler2004/01/30 02:00:12 Modified:src/blocks/woody/java/org/apache/cocoon/woody/flow/javascript/v2 ScriptableWidget.java Log: Make cocoon compilable again - please cross-check the change

Re: [flowscript] How to set an integer value in the FlowScript?

2004-01-29 Thread Christopher Oliver
JS Number is a double according to the specification. ScriptableWidget provides coercions that allow you to write: offset.value = 0; See the sample I recently committed. Regards, Chris Joerg Heinicke wrote: On 28.01.2004 18:21, Carlos Chávez wrote: i am think this is related with the

Re: CVS build broken, missing PageLocalScopeHolder

2004-01-28 Thread Christopher Oliver
Sorry, my bad. Should be fixed now. Bertrand Delacretaz wrote: Current CVS does not compile here, looks like the PageLocalScopeHolder class source code is missing: src/java/org/apache/cocoon/components/flow/javascript/fom/ FOM_Cocoon.java:238: cannot resolve symbol symbol : class

Re: [OT] Flow and Scheme

2004-01-28 Thread Christopher Oliver
SISC http://sisc.sourceforge.net Brian McCallister wrote: Which scheme implementation was used for the original implementation of flow, or did somebody create their own? Is it still available? Thanks! -Brian

Improving the Woody Flowscript API

2004-01-28 Thread Christopher Oliver
I've just checked in some experimental improvements to the Woody Flowscript API and an associated sample. Because the changes are not backward compatible I've placed the files in a new package. The idea is to try to remove the duplication present in the current API in two places: 1) The

Re: JXTemplateGenerator and exceptions

2004-01-27 Thread Christopher Oliver
Can you provide an example stack trace? AFAIK JXTemplateGenerator wraps an exception it catches in a SAXParseException. The original exception should still be available through SAXException.getException(). Upayavira wrote: We've built a quite large set of Java objects that are handled by flow

Re: Managing Continuation Trees

2004-01-27 Thread Christopher Oliver
Ok, I just committed changes that implement createWebContinuation(). The support for continuation local variables is also included. Regards, Chris Vadim Gritsenko wrote: Christopher Oliver wrote: There is a disadvantage to that approach, however, namely that it creates new WebContinuations

Re: ProcessingException from sendPage

2004-01-25 Thread Christopher Oliver
OK. This occurs if you incorrectly call sendPage() more than once in the same invocation of your flowscript. If I have time, I'll try to put in a better error message. Christopher Oliver wrote: I get the below exception occasionally. Any ideas? org.apache.cocoon.ProcessingException: Generator

Re: Managing Continuation Trees

2004-01-25 Thread Christopher Oliver
of WebContinuations exactly matches the sequence of pages (regardless of whether the page redisplayed, as in for example Woody's validation loop), making back button handling easy. Regards, Chris Sylvain Wallez wrote: Christopher Oliver wrote: OK, I got you. What you want is a continuation

Re: Managing Continuation Trees

2004-01-25 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: There is a disadvantage to that approach, however, namely that it creates new WebContinuations when you redisplay the page (i.e. when sendPageAndWait is called again). The approach I suggested reuses the same WebContinuation. Reusing the same

  1   2   3   >