Re: [RT] Flowmaps

2002-07-27 Thread Christopher Oliver
, who came up with the idea, and to Christopher Oliver, who implemented continuations in Rhino. I just put all the things together and implement the support in Cocoon. A question about Christopher Oliver : is he using Cocoon, or is he using the continuation-enabled version of Rhino

Re: Flow status and report.

2002-09-04 Thread Christopher Oliver
Ovidiu Predescu wrote: In this example, both login() and addToCart() are functions that can be called from the sitemap using map:call function=.../. The value of all the global variables is essentially preserved, once the createSession() function is called. I'll commit an example of this

RE: [control flow] changes and new sample

2002-09-10 Thread Christopher Oliver
Hi Ivelin, Actually I believe it is possible to have continuations in pure Java -- using bytecode rewriting -- however this approach is quite intrusive and its effect on performance and code-size is not insignificant (see: http://www.cs.kuleuven.ac.be/~tim/MOS/brakes.html). Nevertheless the

Re: [control flow] changes and new sample

2002-09-11 Thread Christopher Oliver
Hi Sylvain, Sylvain Wallez wrote: Christopher Oliver wrote: Hi Ivelin, Actually I believe it is possible to have continuations in pure Java -- using bytecode rewriting -- however this approach is quite intrusive and its effect on performance and code-size is not insignificant (see

Re: Flow wishlist :)

2002-11-26 Thread Christopher Oliver
Ovidiu Predescu wrote: Flow is designed to simplify the sitemap by reducing the amount of routing components required and by moving business logic out of the sitemap. Having global flow script variables available to routing components might encouarage users to move the flow/routing control

RE: [Proposal] Implementing XMLForm with Flow

2002-12-04 Thread Christopher Oliver
Ivelin, Not sure if you realize this already, but you can use all those Java API's from the flow layer if you need them. Rhino provides bidirectional interoperability with Java: you can create java objects and call their methods from JavaScript, and you can extend Java classes and implement

Re: flowscript save-on-back

2002-12-04 Thread Christopher Oliver
Ovidiu, I think the below would also work, without changing system.js or any Java code by using Rhino with continuations extended JavaScript syntax: catch (continue) { // The continuation I'm part of is about to be restored // code to handle that goes here. } catch (break) { // I'm

Re: flowscript save-on-back

2002-12-05 Thread Christopher Oliver
Hi Daniel Daniel Fagerstrom wrote: Interesting!! Could you tell a litle bit more about how this construct works? What corresponds to the try block in ordinary exception handling There is no corresponding try block in this case. See section 2.2 in

Re: Flow wishlist :)

2002-12-05 Thread Christopher Oliver
Ovidiu Predescu wrote: Instead of putting in convenience features like this I think it would be more valuable to make other view layers (Velocity, JSP's) accessible to the flow layer. If someone familiar with the internals of Cocoon wants to help me out I'd be interested in contributing to

Re: [Proposal] Implementing XMLForm with Flow

2002-12-06 Thread Christopher Oliver
Um, I think Daniel basically answered this question a long time ago: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=102052662705449w=2. Sorry, I don't have an actual implementation, but I think it's clear that the corresponding flow code would be much more readable than the action code in the

Re: [Proposal] Implementing XMLForm with Flow

2002-12-07 Thread Christopher Oliver
provides an elegant solution compared to using actions. (Remember, that was the objection you most recently raised). Regards, Chris Ivelin - Original Message - From: Christopher Oliver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 06, 2002 9:13 PM Subject: Re: [Proposal

Re: Flow debugger support checked in

2002-12-07 Thread Christopher Oliver
After you get it running, here's a link to some documentation for using it: http://www.mozilla.org/rhino/debugger.html. Regards, Chris Stefano Mazzocchi wrote: Marcus Crafter wrote: Hi All, Hope all is well. I've just checked-in support for using the Rhino JavaScript debugger

Re: [Proposal] Implementing XMLForm with Flow

2002-12-08 Thread Christopher Oliver
Uh, how useful is it to insist that something be fully implemented to prove a point in a discussion on a mailing list? The purpose of my example was to show that the flow layer allows you to avoid the state-machine code required in XMLForm actions (which is what you questioned in your original

Re: [Proposal] Implementing XMLForm with Flow

2002-12-08 Thread Christopher Oliver
Hi Ivelin, Ivelin Ivanov wrote: I have nothing new to add, but would like to balance the discussion with a reminder: - Original Message - From: Ovidiu Predescu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 07, 2002 10:52 PM Subject: Re: [Proposal] Implementing

Re: Changes made to flow system.js

2002-12-08 Thread Christopher Oliver
Stefano Mazzocchi wrote: Miles Elam wrote: Stefano Mazzocchi wrote: Look at what sendPageAndWait() is supposed to do: 1) create the continuation object 2) store it someplace 3) get its id 4) invoque the sitemap with the required URI 5) pass the invocation parameters and the

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Christopher Oliver
Ugo Cei wrote: I've tried to implement this use case in a flowscript like the following: function foobar() { // Note the use of the new style function names sendPageAndWait(showform, {}); // Collect request parameters here sendPageAndWait(askforconfirmation, { /* ... field values ... */

Re: [Flow] Going back and forth with continuations

2002-12-13 Thread Christopher Oliver
Konstantin Piroumian wrote: From: Ugo Cei [EMAIL PROTECTED] It seems to me that Christian's version is more correct conceptually, it allows to perform additional actions when user clicks Go back, while in your version the flow engine will automatically return the flow to the pervious state.

Re: Compiling with Servlet spec 2.3 classloading

2002-12-14 Thread Christopher Oliver
I've also had to try to solve the embedded compiling problem (for other reasons) and I've also tried to use Pizza. Unfortunately, Pizza is very poor quality code and has severe limitations that made it unusable for me. Instead I've used the eclipse.org Java Development Tools compiler (which is

Re: Compiling with Servlet spec 2.3 classloading

2002-12-15 Thread Christopher Oliver
OK. Done. I've placed the most permissive, non-copyleft license I could find on this code. Regards, Chris Nicola Ken Barozzi wrote: Christopher Oliver wrote: [...] There is no license for the code I've written. Please, add a license to it, possibly an Apache-derived license. If code

Re: [Flow] Going back and forth with continuations

2002-12-16 Thread Christopher Oliver
Ovidiu Predescu wrote: On Sunday, Dec 15, 2002, at 23:59 US/Pacific, Ugo Cei wrote: Ovidiu Predescu wrote: One solution would be to define a pseudo-continuation, just after you finish the function initialization code, which could be referred from the View page template. Something like:

Re: Compiling with Servlet spec 2.3 classloading

2002-12-19 Thread Christopher Oliver
Hi Jakob, [EMAIL PROTECTED] wrote: Your solution definitely looks nicer than mine! -- and a somewhat other and larger project ;-) Have you made a Cocoon hook for this? or should I try to give it a go? Please do. - To

Re: [Proposal] Implementing XMLForm with Flow

2002-12-23 Thread Christopher Oliver
Hi Ugo, Ugo Cei wrote: function checkLogin(funarg) { if (user == null) login(); funarg(); } This doesn't seem to work. It always generates an error message like org.mozilla.javascript.EvaluatorException: checkout is not a function. But if I invoke the same function directly from

Re: [Proposal] Implementing XMLForm with Flow

2002-12-23 Thread Christopher Oliver
Ugo Cei wrote: Christopher Oliver wrote: Try this: function checkLogin(funarg) { if (user == null) { login(); this[funarg](); } } Thanks, it worked! While you're at it, would it be possible to pass arguments to funarg, by defining them in the sitemap? I mean

Re: [vote] finilizing the pending votes on flow [was Re: [RT] Flow/SitemapIntegration]

2003-01-16 Thread Christopher Oliver
Hi Reinhard, Just a warning, you should always use the var keyword with local variables in JavaScript. Your function should probably read: function callPipeline(src) { var xc = cocoon.componentManager.lookup( myXMLConsumer.ROLE ); var resolver =

RE: [WEB-INF] MicroStep #1: getRealPath()

2003-01-31 Thread Christopher Oliver
As I mentioned before (http://marc.theaimsgroup.com/?l=xml-cocoon-devm=103990910724056w=2), it's possible to do embedded compiling without the limitations of javac. See ftp://ftp.primaryinterface.com/pub/javacAPI Regards, Chris -Original Message- From: Pier Fumagalli [mailto:[EMAIL

Re: [FLOW] Thank you...

2003-02-01 Thread Christopher Oliver
Unfortunately, it doesn't. Sylvain Wallez wrote: Tony Collen wrote: On Thu, 30 Jan 2003, Nicola Ken Barozzi wrote: We didn't understand what he was doing, but he seemed so passionate about it that we could not get together the courage to stop him. Then somehow he finally understood that

RE: [flow] How can I delete in javascript?

2003-02-11 Thread Christopher Oliver
The workaround for using javascript keywords (like delete) as property names is to use the [] notation instead of ., i.e.: myClass[delete](objectToDelete); Regards, Chris -Original Message- From: Fabio Sabatini [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 10:50 AM To:

Re: DO NOT REPLY [Bug 16580] - Java compiler requires JARs in theFS; can not use classloader

2003-02-14 Thread Christopher Oliver
I believe Tomcat makes this work via the following hack: Requiring that class loaders are URLClassLoaders (containing file resources) in a three-level arrangement Common | Shared | WebApp Then before executing javac it walks up the

Re: [FLOW] Thank you...

2003-02-14 Thread Christopher Oliver
was told to me by a friend of mine, Florin Mihaila, who read about it in a paper by Christian Queinnec (http://youpou.lip6.fr/queinnec/WWW/Queinnec.html). Christopher Oliver was very instrumental in implementing continuations in Rhino. Without his excellent work, patience and attention

Re: extending XMLForms for different kinds of models...opinions?

2003-02-15 Thread Christopher Oliver
Just wondering, why isn't the average cocoon user reluctant to write complex xpath or xslt code as well as Java? Regards, Chris Sylvain Wallez wrote: This is a good idea when you need to use the JavaBean for some business logic. But there are many cases where you just want to populate a

Re: Bug 16580; compiling xsp with classpath

2003-02-16 Thread Christopher Oliver
Oliver surely is on to something more viable with his JavaCAPI - but for the time being, the pizza compiler works great here at my company. I asked Christopher Oliver whether it was OK for me to integrate his JavaCAPI into cocoon - and he said it would be cool; but due to too much work and a rather

Re: Bug 16580; compiling xsp with classpath

2003-02-16 Thread Christopher Oliver
Wallez wrote: Christopher Oliver wrote: Actually I am in the process of trying to do this but got immediately stopped by the below when I first tried to run cocoon (built from today's cvs), Anyone care to help? Regards, Chris ERROR (2003-02-16) 13:12.15:159 [access] (/cocoon/documents

Re: Bug 16580; compiling xsp with classpath

2003-02-16 Thread Christopher Oliver
Yes, adding xsltc-X.jar to common/endorsed fixed that problem. But what exactly caused it in the first place? Can someone explain? Regards, Chris Ugo Cei wrote: Christopher Oliver wrote: Sylvain, Can you explain the connection between Xalan.jar, the endorsed directory, and the error

Re: Bug 16580; compiling xsp with classpath

2003-02-16 Thread Christopher Oliver
) Regards, Chris Stefano Mazzocchi wrote: Christopher Oliver wrote: Actually I am in the process of trying to do this but got immediately stopped by the below when I first tried to run cocoon (built from today's cvs), Anyone care to help? Regards, Chris ERROR (2003-02-16) 13:12.15:159

Re: Bug 16580; compiling xsp with classpath

2003-02-16 Thread Christopher Oliver
Heinicke wrote: Not exactly, but the JDK 1.4 comes with older versions of Xalan, Xerces and so on and there seem to be some incompatibilities. And normally JDK classes are loaded first = the well-known endorsed problem. Joerg Christopher Oliver wrote: Yes, adding xsltc-X.jar to common

Re: Bug 16580; compiling xsp with classpath

2003-02-17 Thread Christopher Oliver
Unfortunately 1.4.0 on windows appears to be also, since that's what I'm using. Have you had success using a java debugger with Cocoon? Regards, Chris Peter Royal wrote: On Monday, February 17, 2003, at 12:40 PM, Christopher Oliver wrote: Yes, we should report this bug to tomcat-dev

XMLForm/Flow Integration

2003-02-18 Thread Christopher Oliver
Attached is a first try at integrating XMLForm with the Cocoon Flow layer. Since I'm not an expert on XMLForm or XForms (or Cocoon for that matter!) it's likely to have limitations or defects so keep that in mind. The attached files provide an implementation of the XMLForm Feedback Wizard

Re: XMLForm/Flow Integration

2003-02-18 Thread Christopher Oliver
Ugo Cei wrote: I didn't try the sample, since it's 1AM and I'm going to bed, but just by looking at the code, I have a couple of observations: XForm.sendView(view, uri) // Sends view to the presentation pipeline and waits for the form to be submitted (and automatically resends

Setting values in XMLForm (via JXPath)

2003-02-21 Thread Christopher Oliver
It appears that XMLForm's use of JXPath is hardcoded to setting indexed values only on Java arrays and Collections (not DOM nodes or other types of JXPath nodes). I was attempting to use a JavaScript object as a JXPath node, but ran into the below problem in Form.java

Re: Setting values in XMLForm (via JXPath)

2003-02-21 Thread Christopher Oliver
() - Dmitri --- Christopher Oliver [EMAIL PROTECTED] wrote: It appears that XMLForm's use of JXPath is hardcoded to setting indexed values only on Java arrays and Collections (not DOM nodes or other types of JXPath nodes). I was attempting to use a JavaScript object as a JXPath node, but ran

Re: XMLForm/Flow Integration

2003-02-22 Thread Christopher Oliver
Ugo, I will shortly commit changes that will allow you to use any JavaScript object (in addition to Java beans) as the model for an XMLForm. Attached is an example of the feedbackWizard sample using a pure JavaScript model. Of course, you can also embed Java objects inside the JavaScript

Re: XMLForm/Flow Integration

2003-02-23 Thread Christopher Oliver
Ugo Cei wrote: Christopher Oliver wrote: Ugo, I will shortly commit changes that will allow you to use any JavaScript object (in addition to Java beans) as the model for an XMLForm. Attached is an example of the feedbackWizard sample using a pure JavaScript model. Of course, you can also embed

XMLForm/Flow changes

2003-02-23 Thread Christopher Oliver
I've committed changes to support using the Cocoon flow layer with XMLForm, which includes a flow-based version of the XMLForm feedback sample wizard (http://localhost:/samples/xmlform/flow), that you'll be able to try yourself as soon as someone fixes the build for the samples in cvs ;)

Re: XMLForm/Flow Integration

2003-02-23 Thread Christopher Oliver
ivelin wrote: Chris, I am trying to get my hands around your code. I see the function which loops until there are no more input violations and although I have a guess about the response, I would still like to hear from you on these questions: Where would you place calls to the backend which for

XMLForm/Flow Integration Documentation

2003-02-23 Thread Christopher Oliver
Any suggestions on how to document this stuff: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=104604489704318w=2 ? To write an XMLForm application with the flow layer involves at least: 1) Writing XForm documents for each of the pages in your Form 2) Writing a schematron script that describes

Re: XMLForm/Flow Integration

2003-02-23 Thread Christopher Oliver
ivelin wrote: Chris, I am trying to get my hands around your code. I see the function which loops until there are no more input violations and although I have a guess about the response, I would still like to hear from you on these questions: Where would you place calls to the backend which for

Re: ScriptablePointer does not compile

2003-02-24 Thread Christopher Oliver
Hi Martin, You have an old version of JXPath in your classpath. Search for and remove commons-jxpath-1.0.jar. This has been superceded by commons-jxpath-1.1b1.jar. Note that in this case the compile-time error caused by import .* is actually beneficial. If not for that you would get a runtime

Support for Eclipse JDT Compiler

2003-02-27 Thread Christopher Oliver
I've just committed changes to support using the Eclipse JDT compiler (http://www.eclipse.org/documentation/html/plugins/org.eclipse.jdt.doc.isv/doc/reference/api/index.html) as an embedded Java compiler for Cocoon. To use this compiler modify your cocoon.xconf like this:

Re: Support for Eclipse JDT Compiler

2003-02-27 Thread Christopher Oliver
Stefano Mazzocchi wrote: Christopher Oliver wrote: I've just committed changes to support using the Eclipse JDT compiler (http://www.eclipse.org/documentation/html/plugins/org.eclipse.jdt.doc.isv/doc/reference/api/index.html) as an embedded Java compiler for Cocoon

Re: Setting values in XMLForm (via JXPath)

2003-02-28 Thread Christopher Oliver
for improvement? -=Ivelin=- - Original Message - From: Christopher Oliver [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, February 21, 2003 4:10 PM Subject: Re: Setting values in XMLForm (via JXPath) In this case it looks like XMLForm is trying

Flow/Velocity

2003-03-02 Thread Christopher Oliver
I've just committed changes to support calling Velocity (http://jakarta.apache.org/velocity) from the Cocoon flow layer. In order to not break any existing users of the VelocityGenerator, I've created a new generator: org.apache.cocoon.generation.FlowVelocityGenerator This generator differs

Flow Layer Database API

2003-03-03 Thread Christopher Oliver
I've just committed [experimental] changes that provide a simple database API for the Cocoon flow layer modeled after JSTL (http://java.sun.com/products/jsp/jstl). This will allow you to perform a database query in a flow script that produces a bean-like object for use by your presentation

Re: Flow result storage : let's fix it before its too late !

2003-03-03 Thread Christopher Oliver
First of all Sylvain, my name is Chris Oliver, not Andrew C. Oliver (that's [EMAIL PROTECTED]). Sylvain Wallez wrote: Hi all, A rather provocative subject, so let me first say that I like the flow, even if unfortunately I didn't have the occasion to use it up to know. Ovidiu did a wonderful

Re: Flow Layer Database API

2003-03-03 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: The cocoon object now supports a new function getConnection([String] dataSourceName); This looks cool... but, continuing my rant about oversimplification, why does the _cocoon_ object hold methods to access database connections ? AFAIK

Re: Flow Layer Database API

2003-03-03 Thread Christopher Oliver
(productList.limitedByMaxRows); } // etc ... I believe if used properly this can still provide the correct SOC. What do you think? Regards, Chris Gianugo Rabellino wrote: Christopher Oliver wrote: I've just committed [experimental] changes that provide a simple database API for the Cocoon flow layer modeled

Re: Flow Layer Database API

2003-03-03 Thread Christopher Oliver
Pier Fumagalli wrote: On 4/3/03 0:52, Christopher Oliver [EMAIL PROTECTED] wrote: You know what? You're right. My description below was wrong. What I should have said is that I created a simple _JavaScript_ database API that can be used to implement business objects in JavaScript. Nononono

Re: Flow Layer Database API

2003-03-03 Thread Christopher Oliver
Pier Fumagalli wrote: On 3/3/03 20:57, Christopher Oliver [EMAIL PROTECTED] wrote: I don't see the point in extending the core functionality of the flow, dealing with cocoon pipelines and requests, when this should be only an external layer which can be _easily_ implemented by writing one tiny

Re: Flow Layer Database API

2003-03-03 Thread Christopher Oliver
Antonio Gallardo wrote: Hi Christopher: I think that the point they tried to show us is that the database functions can be an optional part of all the Flow block. I agree because some applications will not need to use databases at all. Yes, clearly, that is the case. However, there isn't yet a

Re: Stabilizing flow in order to release

2003-03-04 Thread Christopher Oliver
Stefano Mazzocchi wrote: Sylvain Wallez wrote: 3) no higher level functionality should be added without a previous RT/proposal/vote cycle. I'm perfectly aware of the fact that this will reduce the freedom of people like Chris to innovate and show potentially creative new uses of the flow. For

Re: Stabilizing flow in order to release

2003-03-04 Thread Christopher Oliver
Stefano Mazzocchi wrote: Some like the flow, some don't know it enough to dislike it but won't try it out until we have a release. In the meanwhile, we are adding functionality without stabilizing it. I believe we should work toward release Cocoon 2.1, this is our priority at the moment:

Re: Stabilizing flow in order to release

2003-03-04 Thread Christopher Oliver
Jakob Praher wrote: Am Die, 2003-03-04 um 18.52 schrieb Christopher Oliver: Not sure. This is one of the weaknesses of JavaScript. It doesn't have any structuring mechanism for creating libraries or reusable modules (which was one of the things JavaScript 2.0 was supposed to fix). I think

RE: Stabilizing flow in order to release

2003-03-04 Thread Christopher Oliver
: Stabilizing flow in order to release On 4/3/03 22:08, Christopher Oliver [EMAIL PROTECTED] wrote: Jakob Praher wrote: Am Die, 2003-03-04 um 18.52 schrieb Christopher Oliver: Not sure. This is one of the weaknesses of JavaScript. It doesn't have any structuring mechanism for creating libraries

Re: [RANT] The Flow...

2003-03-04 Thread Christopher Oliver
Pier Fumagalli wrote: Back to the drawing board, my fellow IDL editor at hands, and I start doing one weird thing: converting the flow object model into IDL, as the current JavaDOC output of JSCocoon and friends doesn't look easy and nice, preventing me to visually see if it's an implementation

Re: [RANT] The Flow...

2003-03-05 Thread Christopher Oliver
Pier Fumagalli wrote: On 5/3/03 7:29, Christopher Oliver [EMAIL PROTECTED] wrote: Pier Fumagalli wrote: I know... But where can I read it? Where will our users be able to see that all those function they rely on are actually implementation details and that they shouldn't even touch them

Re: [RANT] The Flow...

2003-03-05 Thread Christopher Oliver
Pier Fumagalli wrote: On 5/3/03 14:52, Christopher Oliver [EMAIL PROTECTED] wrote: It should be documented that the rest are private and as a normal user of the flow layer I think you probably shouldn't be using them. So, can I please ask to everyone not to hack around the flow O/M before

Re: [RANT] The Flow...

2003-03-05 Thread Christopher Oliver
Pier Fumagalli wrote: It would be kool to take a look at it... But bear in mind that part of the OM for the flow is written in JavaScript (system.js), and part in Java (o.a.c.c.flow and o.a.c.c.flow.javascript packages)... The _best_ thing would be to have an IDL javadoc... Pier Try these,

Re: [RANT] The Flow...

2003-03-05 Thread Christopher Oliver
OK. Following Pier's approach, I've also tried to start documenting the Cocoon Flow Object Model everything that is currently under flow/javascript in CVS - whether I think it should be there or not - using IDL and generated JavaDocs using openorb's idldoc. The idl is here:

RE: [Flow] XForm.finish unnecessarily removes session

2003-03-06 Thread Christopher Oliver
I think you're right. It shouldn't remove the session. -Original Message- From: Ugo Cei [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 2:48 PM To: [EMAIL PROTECTED] Cc: Christopher Oliver Subject: [Flow] XForm.finish unnecessarily removes session In the Flow's system.js script

Re: Great shot (IDL and stuff)...

2003-03-08 Thread Christopher Oliver
Pier, If you want the IDL for Java classes you could try using the rmic compiler that comes with the jdk. Just do rmic -idl java.io.OutputStream for example. Otherwise, I don't think you need a JavaObject, etc. You can just do module java { module lang { interface Object {

Rhino with continuations cvs

2003-03-10 Thread Christopher Oliver
Just wanted to let people know that thanks to Steven Noels and Ovidiu the Rhino interpreter with continuations recently got a CVS repository at cocoondev.org: http://cvs.cocoondev.org/cgi-bin/viewcvs.cgi/rhino1_5R4pre Regards, Chris

Re: Eclipse javac is screwed?

2003-03-11 Thread Christopher Oliver
Hi Vadim, The EclipseJavaCompiler is currently hardcoded with source=1.4 and target=1.4. This is because I didn't know how to configure those properties through the available Cocoon interfaces. There is nothing wrong with the Eclipse compiler itself, only with my code. Either we can hardcode

Re: Rhino with continuations cvs

2003-03-11 Thread Christopher Oliver
Stefano Mazzocchi wrote: Christopher Oliver wrote: Just wanted to let people know that thanks to Steven Noels and Ovidiu the Rhino interpreter with continuations recently got a CVS repository at cocoondev.org: http://cvs.cocoondev.org/cgi-bin/viewcvs.cgi/rhino1_5R4pre That's very good. BTW

Re: Eclipse javac is screwed?

2003-03-11 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: Hi Vadim, The EclipseJavaCompiler is currently hardcoded with source=1.4 and target=1.4. This is because I didn't know how to configure those properties through the available Cocoon interfaces. There is nothing wrong with the Eclipse compiler

Re: Rhino with continuations cvs

2003-03-11 Thread Christopher Oliver
Stefano Mazzocchi wrote: BTW, do you have any news on the merging your patches into the main rhino tree at mozilla.org? Honestly, I don't think that will happen any time soon. My changes were based on a snapshot from March of last year. During that time one of the Rhino developers has

Re: Eclipse javac is screwed?

2003-03-11 Thread Christopher Oliver
It just indicates whether the compiler should accept java 1.4 source extensions like assert. It's equivalent to: javac -source 1.4 ... Vadim Gritsenko wrote: Christopher Oliver wrote: OK. But, I think you should also set the source version. What do you think? I was (and still am) not sure

Re: [RF] Entropy Killed the Cat

2003-03-11 Thread Christopher Oliver
Stefano Mazzocchi wrote: The discussion is about making the flow a technology that cocoon can depend on for years. And this passes thru stabilizing the contracts between the flow scripters and the cocoon internals. And I want this to be done by a community, not by only the few developers that

Java PetStore sample

2003-03-13 Thread Christopher Oliver
I've made a first cut at implementing the Java PetStore example application using Cocoon. I started by converting the Ibatis PetStore (https://sourceforge.net/projects/ibatisjpetstore) which is struts-based to use the Cocoon flow layer (and converted its jsp's to velocity templates). I could

Re: Java PetStore sample

2003-03-14 Thread Christopher Oliver
leo leonid wrote: I never used velocity templates so far. In order to get your snapshot running (so far I get a ConfigurationException: Type 'flow_velocity' is not defined) I wanted to have a look at the velocity-cocoon samples. Unfortunately the are not available in the latest 2.1 CVS build.

Discussion of Flow Issues

2003-03-14 Thread Christopher Oliver
Here's a summary of some of the recent issues with the Flow for discussion: 1) Storing the flow context object and continuation in environment attributes: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=104673257019781w=2 This seems easy to fix. But I personally don't understand the

Re: Java PetStore sample

2003-03-14 Thread Christopher Oliver
leo leonid wrote: Eventually, I'd like to add this to the flow samples, but in the meantime if anyone is interested in helping, let me know and I'll check it into the scratchpad. (Unfortunately the scratchpad samples are still broken though). Please do. A sample like this would be sufficient

Re: more xmlforms + schematron, why ?

2003-03-14 Thread Christopher Oliver
It may not help you at the moment because its still under development, but with the current XMLForm integration with the Cocoon flow layer, you can also do validation in JavaScript, meaning you have regular expressions, String operations, etc, the full power of JavaScript and Java, if you need

Re: Java PetStore sample

2003-03-16 Thread Christopher Oliver
leo leonid wrote: On Freitag, März 14, 2003, at 07:45 Uhr, Christopher Oliver wrote: the views are pretty much brain-dead: Velocity generating xhtml directly. It would be neat if we could better show off Cocoon's view generation capabilities - but I suck at that type of thing. Anyway, any

Re: Java PetStore sample

2003-03-16 Thread Christopher Oliver
leo leonid wrote: On Freitag, März 14, 2003, at 07:45 Uhr, Christopher Oliver wrote: the views are pretty much brain-dead: Velocity generating xhtml directly. It would be neat if we could better show off Cocoon's view generation capabilities - but I suck at that type of thing. Anyway, any

Re: Eclipse JDT breaks XSP!

2003-03-16 Thread Christopher Oliver
I didn't find anything in Eclipse bugzilla. The reports on cocoon-dev about this seem to all be coming from MacOS X. I glanced at the code and I don't see an obvious problem (look at readTable(String filename) in

Re: Eclipse JDT breaks XSP!

2003-03-16 Thread Christopher Oliver
Found it: http://bugs.eclipse.org/bugs/show_bug.cgi?id=34658#c28 Pier Fumagalli wrote: On 16/3/03 23:40, Vadim Gritsenko [EMAIL PROTECTED] wrote: Christopher Oliver wrote: I didn't find anything in Eclipse bugzilla. The reports on cocoon-dev about this seem to all be coming from MacOS X

Re: Discussion of Flow Issues

2003-03-16 Thread Christopher Oliver
Sylvain Wallez wrote: A short explanation about the object model. Cocoon abstracts its runtime environment through the Environment interface. An Environment object gives access to a number of things that are relevant to the pipeline/sitemap engine only and should not be visible from other

Re: Java PetStore sample

2003-03-16 Thread Christopher Oliver
Stefano Mazzocchi wrote: Christopher Oliver wrote: leo leonid wrote: On Freitag, März 14, 2003, at 07:45 Uhr, Christopher Oliver wrote: the views are pretty much brain-dead: Velocity generating xhtml directly. It would be neat if we could better show off Cocoon's view generation capabilities

Re: cvs commit: cocoon-2.1/src/scratchpad/webapp/samples/petstore/flowPetStoreImpl.js

2003-03-16 Thread Christopher Oliver
Thanks. My bad. [EMAIL PROTECTED] wrote: vgritsenko2003/03/16 17:16:19 Modified:src/scratchpad/webapp/samples/petstore/flow PetStoreImpl.js Log: Fix petstore sample Revision ChangesPath 1.3 +1 -1

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-16 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: Sylvain Wallez wrote: snip/ So we need two more values in the object model Map : one for the value dictionary, and one for the continuation. How does it sound ? That would work. Excellent! I've grepped sources, seen those awful

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-16 Thread Christopher Oliver
Pier Fumagalli wrote: On 17/3/03 2:06, Vadim Gritsenko [EMAIL PROTECTED] wrote: Practical proposal: * Add flow-continuation to the objectModel, and getter method to the ObjectModelHelper, as a replacement for kont environment attribute. Read only properties of the script (global) ??? Or

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-16 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: Right now VelocityGenerator exports (as per javadoc): * dtrequest (org.apache.cocoon.environment.Request)/dt * ddThe Cocoon current request/dd * * dttemplate (java.lang.String)/dt * ddThe path of the template file currently being evaluated/dd

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-16 Thread Christopher Oliver
Vadim Gritsenko wrote: Here you will have to explain to me why: Why whould you want to pass *only* this bean? Because that is the contract between the flowscript and the presentation layer. And I still have question why don't you put this bean into request attributes? And why have such bean in

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-16 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: That's not the case. All are equally crippled ;) For example, when using Xsp, the idea is that the only logic sheet you will ever use is the jpath logic sheet. This does not give you direct access to session, request, or context but only

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-16 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: Vadim Gritsenko wrote: Here you will have to explain to me why: Why whould you want to pass *only* this bean? Because that is the contract between the flowscript and the presentation layer. In Cocoon apps, presentation layer is usually XSL

Re: Java PetStore sample - alternative view

2003-03-17 Thread Christopher Oliver
leo leonid wrote: I just put the first results on my server. = http://proto2.leonid.de The XSP/XSL view for browsing Categories, Products, Items, Search, SignOn is already working. I'm now a bit stuck with the Cart, where I am still unsuccessful in retrieving values from the flow layer via

Re: [PROPOSAL] Continuation in objectModel, Was: Discussion of FlowIssues

2003-03-17 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: You may discourage usage of these objects for the sake of perfectness of the MVC in the documentation but I don't think you should insist on disabling access to them (like in FlowVelocityGenerator). Fair? Vadim I think you're right. JSTL

Re: Java PetStore sample - alternative view

2003-03-17 Thread Christopher Oliver
leo leonid wrote: excellent! so I can go on with checkout, order, shiping, etc... Does Xsp have some way of doing number formatting? The numeric values you receive from JavaScript are of type java.lang.Double. Yes probably there is already a logicsheet for this, I try to avoid xsp:logic/.

Re: Discussion of Flow Issues

2003-03-18 Thread Christopher Oliver
Ugo Cei wrote: Sylvain Wallez wrote: Stefano Mazzocchi wrote: 1) do we really need the session object? the flow is in fact deprecating the use of sessions for storing stateful data. I would love to *force* people to think into this way by not making the session available to them. We can

Re: Discussion of Flow Issues

2003-03-18 Thread Christopher Oliver
Upayavira wrote: I am somehow aware that I am abusing sessions here, and that there is a better way, but it's not that easy to follow, probably. If you can show it to me, I'd be glad to abandon sessions, but if you take them away right now, I'm going to be in trouble ;-). Great, integration

Re: Discussion of Flow Issues

2003-03-18 Thread Christopher Oliver
Stefano Mazzocchi wrote: Great, integration between different not-all-flowable parts is a *real* need for sessions in the FOM. So +1 to add it. Anybody against it? Stefano. -1 for this reason. As mentioned in other mails, direct access to the session isn't needed in Ugo's case. +1 for a

  1   2   >