Re: Page scope and ContinuationLocal (was Re: Local variables in FlowScript)

2004-01-21 Thread Sylvain Wallez
Christopher Oliver wrote: getter() and setter() aren't supported by Rhino. Do you mean this particular syntax or the whole concept of property getter and setters? (I found this at http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/obj.html#1018325) Sylvain -- Sylvain

Re: Cookie wrapper for continuation handling

2004-01-21 Thread Torsten Curdt
Ahh, I see what the issue is in general: there are currently no places in our app where we've got anything other than a two state flow: GET - POST jumping to another flow is a completely different GET/POST pair, thus a new cookie and a new continuation. Two ways around this: 1) concatenate the

Re: JXPath templates issues

2004-01-21 Thread Ugo Cei
Christopher Oliver wrote: The problem is that x is a JavaScript wrapper of a HashSet. Jexl's special size() function only support collections and arrays. Perhaps that can be fixed by unwrapping NativeJavaObject's before adding them to the Jexl context. If this solves the problem, I'm +1 for it.

xsp-actions broke with a NPE (treeprocessor error?)

2004-01-21 Thread Antonio Gallardo
Hi: The lastest changes in treeprocessor broke the xsp-action. The problem is in method setup() in o.a.c.generation.ServerPagesGenerator.java this class needs a SourceResolver. Here is the header of the method: public void setup(SourceResolver resolver, Map objectModel, String src, Parameters

Re: [Woody] Boolean widget as a combobox

2004-01-21 Thread Joerg Heinicke
On 21.01.2004 04:46, Antonio Gallardo wrote: Antonio Gallardo dijo: Sylvain Wallez dijo: Do you mean you want to remove wd:booleanfield and add a styling type=checkbox? Yep. This will be clear and for another part a faster parsing of definition. WDYT? Sounds reasonable. Joerg

Re: xsp-actions broke with a NPE (treeprocessor error?)

2004-01-21 Thread Sylvain Wallez
Antonio Gallardo wrote: Hi: The lastest changes in treeprocessor broke the xsp-action. The problem is in method setup() in o.a.c.generation.ServerPagesGenerator.java this class needs a SourceResolver. Ooops,sorry! It should be fixed now. Please cross-check! Sylvain -- Sylvain Wallez

FOM_WebContinuation

2004-01-21 Thread Vadim Gritsenko
Any objections on adding following to the FOM_WebContinuations: * setUserObject * getUserObject * display ? Vadim

Re: Page scope and ContinuationLocal (was Re: Local variables in FlowScript)

2004-01-21 Thread Christopher Oliver
The whole concept Sylvain Wallez wrote: Christopher Oliver wrote: getter() and setter() aren't supported by Rhino. Do you mean this particular syntax or the whole concept of property getter and setters? (I found this at

Re: JXPath templates issues

2004-01-21 Thread Christopher Oliver
Yes. Ugo Cei wrote: Christopher Oliver wrote: The problem is that x is a JavaScript wrapper of a HashSet. Jexl's special size() function only support collections and arrays. Perhaps that can be fixed by unwrapping NativeJavaObject's before adding them to the Jexl context. If this solves

Re: FOM_WebContinuation

2004-01-21 Thread Christopher Oliver
Why do you need those? I don't see any reason to add them. Vadim Gritsenko wrote: Any objections on adding following to the FOM_WebContinuations: * setUserObject * getUserObject * display ? Vadim

Re: FOM_WebContinuation

2004-01-21 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: Why do you need those? I don't see any reason to add them. Vadim Gritsenko wrote: Any objections on adding following to the FOM_WebContinuations: * setUserObject * getUserObject Don't know why they are in WebContinuations in a first place,

Re: [Woody] Boolean widget as a combobox

2004-01-21 Thread Sylvain Wallez
Joerg Heinicke wrote: On 21.01.2004 04:46, Antonio Gallardo wrote: Antonio Gallardo dijo: Sylvain Wallez dijo: Do you mean you want to remove wd:booleanfield and add a styling type=checkbox? Yep. This will be clear and for another part a faster parsing of definition. Sorry, I don't

RE: IOException closing stream in Cocoon Servlet

2004-01-21 Thread Hunsberger, Peter
Antonio Gallardo [EMAIL PROTECTED] writes: Hunsberger, Peter dijo: It appears that if you attempt to close an already closed stream you get an IO exception. This means that if Cocoon gets stopped and restarted it is possible, in at least some circumstances, for Cocoon to throw

RE: Cookie wrapper for continuation handling

2004-01-21 Thread Hunsberger, Peter
Torsten Curdt [EMAIL PROTECTED] writes: Ahh, I see what the issue is in general: there are currently no places in our app where we've got anything other than a two state flow: GET - POST jumping to another flow is a completely different GET/POST pair, thus a new cookie and a new

Re: FOM_WebContinuation

2004-01-21 Thread Vadim Gritsenko
Sylvain Wallez wrote: Vadim Gritsenko wrote: AFAIK, that is already the behavior. If you invalidate the parent, it invalidates all of its children. Yes, if it has them. But the problem here is that he has got no children. You have to stick all the different web continuations trees generated

Re: Cookie wrapper for continuation handling

2004-01-21 Thread Torsten Curdt
Hm... I cannot see how this would help. Continuations have there stack on the server side. In general you're right it's not useful, you'd only be able to support this with a back button on the page that told the server to pop the stack. You wouldn't have browser back button support. I still

Re: FOM_WebContinuation

2004-01-21 Thread Vadim Gritsenko
Sylvain Wallez wrote: Vadim Gritsenko wrote: Sylvain Wallez wrote: Vadim Gritsenko wrote: AFAIK, that is already the behavior. If you invalidate the parent, it invalidates all of its children. Yes, if it has them. But the problem here is that he has got no children. You have to stick all

DO NOT REPLY [Bug 26292] - french accent - why not utf-16 ?

2004-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26292. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Christopher Oliver
Vadim Gritsenko wrote: snip AFAIK, that is already the behavior. If you invalidate the parent, it invalidates all of its children. Yes, if it has them. But the problem here is that he has got no children. You have to stick all the different web continuations trees generated by showForm calls

RE: Cookie wrapper for continuation handling

2004-01-21 Thread Hunsberger, Peter
Torsten Curdt [EMAIL PROTECTED] writes: Hm... I cannot see how this would help. Continuations have there stack on the server side. In general you're right it's not useful, you'd only be able to support this with a back button on the page that told the server to pop the stack.

Continuation Local Variables (iteration 2)

2004-01-21 Thread Christopher Oliver
Taking Sylvain's idea of ContinuationLocal variables, I prototyped an implementation. Since the continuation local variable must be associated with the object managing the actual continuations, I made FOM_Cocoon the factory for creating these (but another object could provide this role). I've

DO NOT REPLY [Bug 26292] - french accent - why not utf-16 ?

2004-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26292. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

DO NOT REPLY [Bug 26292] - french accent - why not utf-16 ?

2004-01-21 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26292. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.

Re: Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Christopher Oliver
What I mean is that there is no framework for creating multi-page forms and no automated support back-forward navigation. As a result you were required to hack... Chris Vadim Gritsenko wrote: Christopher Oliver wrote: Vadim Gritsenko wrote: snip AFAIK, that is already the behavior. If you

Re: FOM_WebContinuation

2004-01-21 Thread Vadim Gritsenko
Hunsberger, Peter wrote: Vadim Gritsenko [EMAIL PROTECTED] writes: Also, one more method is needed: * addChild(FOM_WebContinuation) To answer a question why it is needed: you need it to stitch together different part of the multi-form application, so you can invalidate all of them at once

Re: Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Vadim Gritsenko
Christopher Oliver wrote: What I mean is that there is no framework for creating multi-page forms and no automated support back-forward navigation. As a result you were required to hack... True; but this framework will still have to organize WebContinuations, so addChild() will still be

Continuations break caching - one solution

2004-01-21 Thread Hunsberger, Peter
Ok, as discussed earlier, here goes: The basic issue is that we don't want to include the continuation id with the individual page as request data. If you do, you can't cache the form (server side). For a forms heavy system like ours where 1000's of forms can be viewed simultaneously by 100's

Re: Continuation Local Variables (iteration 2)

2004-01-21 Thread Sylvain Wallez
Christopher Oliver wrote: Taking Sylvain's idea of ContinuationLocal variables, I prototyped an implementation. Since the continuation local variable must be associated with the object managing the actual continuations, I made FOM_Cocoon the factory for creating these (but another object

Re: Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Sylvain Wallez
Christopher Oliver wrote: Vadim Gritsenko wrote: snip AFAIK, that is already the behavior. If you invalidate the parent, it invalidates all of its children. Yes, if it has them. But the problem here is that he has got no children. You have to stick all the different web continuations trees

Re: Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Christopher Oliver
Sylvain Wallez wrote: Christopher Oliver wrote: Vadim Gritsenko wrote: snip AFAIK, that is already the behavior. If you invalidate the parent, it invalidates all of its children. Yes, if it has them. But the problem here is that he has got no children. You have to stick all the different web

Re: Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Vadim Gritsenko
Christopher Oliver wrote: Sorry, I just looked at woody2.js and it actually doesn't do things this way (woody.js did - btw, why have both?). In woody2.js showForm() simply calls cocoon.sendPageAndWait() in a loop. It seems to return the first continuation created. I guess if you save this one,

[cforms] binding insert-node

2004-01-21 Thread tim
In the cforms bindings we have wb:insert-node implemented as a factory. This means that the contained node is only and always created when a createPath* method is called. Some side effects of this design are that the regular DOM factory gets unregistered and there is no way (except by using a

Re: [Woody] Boolean widget as a combobox

2004-01-21 Thread Joerg Heinicke
On 21.01.2004 17:18, Sylvain Wallez wrote: Do you mean you want to remove wd:booleanfield and add a styling type=checkbox? Yep. This will be clear and for another part a faster parsing of definition. Sorry, I don't understand that sentence :-/ Faster parsing should mean one widget-type less I

Re: Multipage Woody Forms (was Re: FOM_WebContinuation)

2004-01-21 Thread Christopher Oliver
Vadim Gritsenko wrote: Christopher Oliver wrote: Sorry, I just looked at woody2.js and it actually doesn't do things this way (woody.js did - btw, why have both?). In woody2.js showForm() simply calls cocoon.sendPageAndWait() in a loop. It seems to return the first continuation created. I

RE: IOException closing stream in Cocoon Servlet

2004-01-21 Thread Antonio Gallardo
Hunsberger, Peter dijo: I'm not sure I even see a reason for logging it at INFO? If you've got an error that occurs because the client closed the socket you're either going to know this, or if you turn up logging to the INFO level to try and find this out you're going to need some way to

Re: [Woody] Boolean widget as a combobox

2004-01-21 Thread Antonio Gallardo
Joerg Heinicke dijo: On 21.01.2004 17:18, Sylvain Wallez wrote: Do you mean you want to remove wd:booleanfield and add a styling type=checkbox? Yep. This will be clear and for another part a faster parsing of definition. Sorry, I don't understand that sentence :-/ Faster parsing should

Call a java file from flowscript.

2004-01-21 Thread Ramaswamy, Dinesh
Hi, I am using Apache Cocoon ver 2.1.2. I am developing an app using JXForms and Flowscript. I have a simlpe Java file which prints Hello World.This java file does not have any package name. Now,from my flowscript, I want to call this java file. Can you please advise me as to how this needs to be