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

2005-02-27 Thread Sylvain Wallez
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 if it was

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

2005-02-27 Thread Reinhard Poetz
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 if it was

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

2005-02-27 Thread Carsten Ziegeler
Sylvain Wallez wrote: And that's what I call, maybe not adequately, inconsistencies. Consider the JS wrapper for the request object. It has a remoteUser property because of the request.getRemoteUser() method. Now what happens if http://foo/bar?remoteUser=root; is called? Your application is

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

2005-02-27 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: And that's what I call, maybe not adequately, inconsistencies. Consider the JS wrapper for the request object. It has a remoteUser property because of the request.getRemoteUser() method. Now what happens if http://foo/bar?remoteUser=root; is called?

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

2005-02-27 Thread Don Brown
On Sun, 27 Feb 2005 14:16:23 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: snip / This is actually similar to ServletRequest.getParameterMap() in servlet 2.4 which we do not have on our Request interface. But we should not introduce special wrappers for Map as proposed recently by the

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

2005-02-27 Thread Don Brown
As an aside, I thought more about it and decided approach #1 was better and less confusing so I switched Struts Flow to that. I still believe the map wrapper provides value as it works great for quick lookups and for..in usage. It also allows for the aforementioned extensions like a length

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

2005-02-27 Thread Sylvain Wallez
Don Brown wrote: On Sun, 27 Feb 2005 14:16:23 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: snip / This is actually similar to ServletRequest.getParameterMap() in servlet 2.4 which we do not have on our Request interface. But we should not introduce special wrappers for Map as proposed

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

2005-02-27 Thread Don Brown
On Sun, 27 Feb 2005 23:15:00 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: snip / The simple fact that we have to elaborate such strategies IMO reveals that there's a problem. This problem comes from the fact that a dynamic property space (request parameters, map entries, etc) is merged with a

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: FOM inconsistency (was Re: [VOTE] Unrestricting the FOM)

2005-02-12 Thread Sylvain Wallez
Antonio Gallardo wrote: snip/ I found time to update the SVN version and an application that works fine using the lastest SVN version seems to be broken. I added 2 lines in javascript flow code for test: cocoon.log.error(name= + cocoon.request.name); cocoon.log.error(name= +

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

2005-02-11 Thread Carsten Ziegeler
Sylvain Wallez wrote: Carsten Ziegeler wrote: I personally would remove this syntactic sugar completly; it's imho not intuitiv what it means and the inconsistent implementation adds to it. In addition it would make our unified object model implementation (for flow, jxtg etc.) much easier as we

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

2005-02-11 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: I personally would remove this syntactic sugar completly; it's imho not intuitiv what it means and the inconsistent implementation adds to it. In addition it would make our unified object model implementation (for flow, jxtg

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

2005-02-11 Thread Antonio Gallardo
On Jue, 10 de Febrero de 2005, 7:51, Sylvain Wallez dijo: oceatoon wrote: Hmm... the problems is that cocoon.request.blah was released and maybe is used is used (by us and other people?) in a lot of places and maybe other peopl! :-( Sorry for peecking into this post but till today I thought

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

2005-02-10 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Now with all this deprecated stuff floating around, we should have a centralized deprecation Logger so that users can easily be informed of the deprecated features they use (in the case of Javascript, there's no compiler warning like in Java).

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

2005-02-10 Thread Carsten Ziegeler
Sylvain Wallez wrote: Thinking further, I don't think we should attach this to the Cocoon object as we may want to use this in classes also used outside the Cocoon machinery. Outside the Cocoon machinery? What do you mean by this? So what about a dedicated o.a.c.util.Deprecation class? Sylvain

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

2005-02-10 Thread oceatoon
Hmm... the problems is that cocoon.request.blah was released and maybe is used is used (by us and other people?) in a lot of places and maybe other peopl! :-( Sorry for peecking into this post but till today I thought cocoon.request.blah was a normal call, and seemed quite natural ;) in a users

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

2005-02-10 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Thinking further, I don't think we should attach this to the Cocoon object as we may want to use this in classes also used outside the Cocoon machinery. Outside the Cocoon machinery? What do you mean by this? I mean not tied to a class that

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

2005-02-10 Thread Sylvain Wallez
oceatoon wrote: Hmm... the problems is that cocoon.request.blah was released and maybe is used is used (by us and other people?) in a lot of places and maybe other peopl! :-( Sorry for peecking into this post but till today I thought cocoon.request.blah was a normal call, and seemed quite

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

2005-02-10 Thread Carsten Ziegeler
Sylvain Wallez wrote: I mean not tied to a class that provides other features than deprecation logging. And the Cocoon class provides so much more ;-) Hence the specific Deprecation class below, which will of course be in the org.apache.cocoon package hierarchy. Ok: +1 - I would choose a

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Sylvain Wallez
Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only difference with the real objects is that a special wrapper is used for request, response and context that shows their

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Peter Hunsberger
On Wed, 09 Feb 2005 16:05:26 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only difference with the real objects is

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Sylvain Wallez
Peter Hunsberger wrote: On Wed, 09 Feb 2005 16:05:26 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only difference with the

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Peter Hunsberger
On Wed, 09 Feb 2005 16:32:28 +0100, Sylvain Wallez [EMAIL PROTECTED] wrote: snip/ cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only difference with the real objects is that a special wrapper is used for request, response and context that

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Carsten Ziegeler
Sylvain Wallez wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only difference with the real objects is that a special wrapper is used for request, response and context

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only difference with the real objects is that a special wrapper is used for

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Antonio Gallardo
On Mie, 9 de Febrero de 2005, 12:06, Sylvain Wallez dijo: Carsten Ziegeler wrote: Sylvain Wallez wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now unrestricted. The only

Re: [VOTE] Unrestricting the FOM

2005-02-09 Thread Carsten Ziegeler
Sylvain Wallez wrote: Great! Why do we need this special wrapper? Because removing it means a backwards incompatible change! Sounds familiar ;) It adds small syntactic sugar by allowing you to write 'cocoon.session.blah' instead of 'cocoon.session.getAttribute(blah)' and the same on request and

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

2005-02-09 Thread Sylvain Wallez
Antonio Gallardo wrote: On Mie, 9 de Febrero de 2005, 12:06, Sylvain Wallez dijo: Carsten Ziegeler wrote: Sylvain Wallez wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request, cocoon.response, cocoon.context and cocoon.session are now

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

2005-02-09 Thread Carsten Ziegeler
Sylvain Wallez wrote: This is clearly inconsistent. Yepp Furthermore, I really don't like this naming scope filled from different sources (the object itself and some other data), especially when one of the sources comes from the browser. And what about conflicts? Fortunately the object is

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

2005-02-09 Thread Antonio Gallardo
On Mie, 9 de Febrero de 2005, 13:58, Sylvain Wallez dijo: Antonio Gallardo wrote: On Mie, 9 de Febrero de 2005, 12:06, Sylvain Wallez dijo: Carsten Ziegeler wrote: Sylvain Wallez wrote: Hi team, Several months later, it's done (the vote started on 14-06-2004). cocoon.request,

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

2005-02-09 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: This is clearly inconsistent. Yepp Furthermore, I really don't like this naming scope filled from different sources (the object itself and some other data), especially when one of the sources comes from the browser. And what about conflicts?

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

2005-02-09 Thread Bertrand Delacretaz
Le 9 févr. 05, à 21:27, Carsten Ziegeler a écrit : ...Unfortunately, I fear that this is common use, so let's deprecate it with 2.1.x and remove for 2.2 completly +1 -Bertrand smime.p7s Description: S/MIME cryptographic signature

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

2005-02-09 Thread Sylvain Wallez
Antonio Gallardo wrote: On Mie, 9 de Febrero de 2005, 13:58, Sylvain Wallez dijo: snip/ Oh f*ck, that's even worse than I thought. It now returns the request *attributes* because I was fooled by the implementation of FOM_Request which was buggy: getIds() which lists the object's properties was

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

2005-02-09 Thread Carsten Ziegeler
Sylvain Wallez wrote: Carsten Ziegeler wrote: Sylvain Wallez wrote: This is clearly inconsistent. Yepp Furthermore, I really don't like this naming scope filled from different sources (the object itself and some other data), especially when one of the sources comes from the browser. And what

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

2005-02-09 Thread Carsten Ziegeler
Carsten Ziegeler wrote: I think this should be as simple as possible. What about a static accessor, e.g. on the Core object? I meant the Cocoon object here (we are talking about 2.1.x). You might want to use this logger where you don't want to either implement Serviceable nor

Re: [VOTE] Unrestricting the FOM

2004-06-17 Thread Jeremy Quinn
On 15 Jun 2004, at 18:04, Sylvain Wallez wrote: Jeremy Quinn wrote: snip/ Should I hold back on committing my changes to make ContextHelper Contextualizable, to wait to see what comes out of this proposal ? Wait a bit ;-) You can still use the ContextAccess class in your own source tree,

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Reinhard Poetz
Sylvain Wallez wrote: Hi all, More and more, the limitations of objects provided by the FOM seem like arbitrary constraints that go in the way of people and produce confusion. Furthermore, these restrictions only apply to the JS flowscript and not to JavaFlow, thus making JS flowscript a second

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Sylvain Wallez
Reinhard Poetz wrote: Sylvain Wallez wrote: Hi all, More and more, the limitations of objects provided by the FOM seem like arbitrary constraints that go in the way of people and produce confusion. Furthermore, these restrictions only apply to the JS flowscript and not to JavaFlow, thus making

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Jeremy Quinn
On 15 Jun 2004, at 10:11, Sylvain Wallez wrote: Reinhard Poetz wrote: Sylvain Wallez wrote: Hi all, More and more, the limitations of objects provided by the FOM seem like arbitrary constraints that go in the way of people and produce confusion. Furthermore, these restrictions only apply to the

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Sylvain Wallez
Jeremy Quinn wrote: On 15 Jun 2004, at 10:11, Sylvain Wallez wrote: snip/ Looking at the vote results, the general opinion is to remove the API restrictions (got only +1's), Good but not tie the FOM to a particular Avalon object (got lots of +0's and a -1). This is more difficult to

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Jeremy Quinn
On 15 Jun 2004, at 10:57, Sylvain Wallez wrote: Jeremy Quinn wrote: On 15 Jun 2004, at 10:11, Sylvain Wallez wrote: snip/ Looking at the vote results, the general opinion is to remove the API restrictions (got only +1's), Good but not tie the FOM to a particular Avalon object (got lots of +0's

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Jeremy Quinn
On 15 Jun 2004, at 11:27, Jeremy Quinn wrote: On 15 Jun 2004, at 10:57, Sylvain Wallez wrote: Jeremy Quinn wrote: On 15 Jun 2004, at 10:11, Sylvain Wallez wrote: snip/ Looking at the vote results, the general opinion is to remove the API restrictions (got only +1's), Good but not tie the FOM to

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Sylvain Wallez
Jeremy Quinn wrote: snip/ I made o.a.c.components.ContextHelper Contextualizable, and added the getAvalonContext() method. It all compiles but is not tested from FlowScript yet. I have to get on with some other stuff right now, but hope to have this tested and committed by this evening (unless

RE: [VOTE] Unrestricting the FOM

2004-06-15 Thread Carsten Ziegeler
Sylvain Wallez wrote: We already have cocoon.context, couldn't we make things available from there? Mmmh... don't know if it's a good idea, as the Cocoon core currently doesn't rely on custom attributes in the environment objects (unless I'm mistaken). This would complexify

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Jeremy Quinn
On 15 Jun 2004, at 15:57, Carsten Ziegeler wrote: Sylvain Wallez wrote: We already have cocoon.context, couldn't we make things available from there? Mmmh... don't know if it's a good idea, as the Cocoon core currently doesn't rely on custom attributes in the environment objects (unless I'm

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: We already have cocoon.context, couldn't we make things available from there? Mmmh... don't know if it's a good idea, as the Cocoon core currently doesn't rely on custom attributes in the environment objects (unless I'm mistaken). This would

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Sylvain Wallez
Jeremy Quinn wrote: snip/ Should I hold back on committing my changes to make ContextHelper Contextualizable, to wait to see what comes out of this proposal ? Wait a bit ;-) You can still use the ContextAccess class in your own source tree, though. BTW. I think there may be a related issue here

RE: [VOTE] Unrestricting the FOM

2004-06-15 Thread Carsten Ziegeler
Jeremy Quinn wrote: Currently these attributes are not really used. Ah, I though these were the context attributes you could access from FlowScript, as in: cocoon.context.setAttribute (name, myObject); I have used this before . when I needed to share the same object

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Jeremy Quinn
On 15 Jun 2004, at 18:04, Sylvain Wallez wrote: Jeremy Quinn wrote: snip/ Should I hold back on committing my changes to make ContextHelper Contextualizable, to wait to see what comes out of this proposal ? Wait a bit ;-) You can still use the ContextAccess class in your own source tree,

Re: [VOTE] Unrestricting the FOM

2004-06-15 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Makes sense. And migrating some stuff to the env-context may help removing some dependencies on Avalon. But whe have to be very careful about what attributes we want to move from avalon-context to env-context, and be sure they will still make

[VOTE] Unrestricting the FOM

2004-06-14 Thread Sylvain Wallez
Hi all, More and more, the limitations of objects provided by the FOM seem like arbitrary constraints that go in the way of people and produce confusion. Furthermore, these restrictions only apply to the JS flowscript and not to JavaFlow, thus making JS flowscript a second zone citizen

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Sylvain Wallez
+1 to remove restrictions on existing objects. +1 to add cocoon.avalonContext. Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Bertrand Delacretaz
Le 14 juin 04, à 12:01, Sylvain Wallez a écrit : Please cast your votes! - [ +1] to remove restrictions on existing objects. - [ +1] to add cocoon.avalonContext. -Bertrand

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Joerg Heinicke
On 14.06.2004 12:01, Sylvain Wallez wrote: That's why I propose to remove these restrictions my having cocoon.request, cocoon.response and cocoon.context providing the full API defined by the interfaces in org.apache.cocoon.environment. Furthermore, I propose to add cocoon.avalonContext to

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Jeremy Quinn
On 14 Jun 2004, at 11:01, Sylvain Wallez wrote: Please cast your votes! The ease with which it can be worked around (thanks Sylvain) and the fact this is available to JavaFlow are good arguments IMHO. - [ +1 ] to remove restrictions on existing objects. - [ +1 ] to add cocoon.avalonContext.

RE: [VOTE] Unrestricting the FOM

2004-06-14 Thread Carsten Ziegeler
Sylvain Wallez wrote: - [ ] to remove restrictions on existing objects. +1 - [ ] to add cocoon.avalonContext. -1 for the name avalonContext. I think we should avoid references to Avalon whereever possible. Otherwise perhaps we have to rename it in the future. So, +1 if a different name is

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Jeremy Quinn
On 14 Jun 2004, at 12:11, Carsten Ziegeler wrote: Sylvain Wallez wrote: - [ ] to remove restrictions on existing objects. +1 - [ ] to add cocoon.avalonContext. -1 for the name avalonContext. I think we should avoid references to Avalon whereever possible. Otherwise perhaps we have to rename it in

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread peter royal
+1 to remove restrictions on existing objects. +0 to add cocoon.avalonContext.

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Ugo Cei
Sylvain Wallez wrote: - [+1] to remove restrictions on existing objects. - [+0] to add cocoon.avalonContext.

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: - [ ] to remove restrictions on existing objects. +1 - [ ] to add cocoon.avalonContext. -1 for the name avalonContext. I think we should avoid references to Avalon whereever possible. Otherwise perhaps we have to rename it in the

RE: [VOTE] Unrestricting the FOM

2004-06-14 Thread Carsten Ziegeler
, couldn't we make things available from there? Carsten -Original Message- From: Sylvain Wallez [mailto:[EMAIL PROTECTED] Sent: Monday, June 14, 2004 2:47 PM To: [EMAIL PROTECTED] Subject: Re: [VOTE] Unrestricting the FOM Carsten Ziegeler wrote: Sylvain Wallez wrote

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Sylvain Wallez
Carsten Ziegeler wrote: This context is a map containing key value pairs, it contains some global information (paths etc.) and e.g. the object model. So even if we would move away from avalon we could have this map without breaking compatibility here. That's why I'm against avalonContext. Ok, I

Re: [VOTE] Unrestricting the FOM

2004-06-14 Thread Tony Collen
Joerg Heinicke wrote: [+1] to remove restrictions on existing objects. [+0] to add cocoon.avalonContext. Joerg Same here. Tony