Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-15 Thread Werner Punz
Ok I added a dynamically loading loadScript function to our javascript _Utils class/function. The code basically resolves the script src handling aspect by loading the script via synchronous xhr and doing a global eval on the script! This way we dont have dom manipulations just to do the script

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-15 Thread Werner Punz
Ok before anyone is starting to write one. I have a script splitting response writer in state which triggers also on src attributes and the connected javascripts load the scripts via xhr and do a global eval. I have not comitted it yet, because I want to compare my code with Trinidad just to

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-11 Thread Werner Punz
: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org mailto:dev@myfaces.apache.org Werner Punz schrieb: Hello everyone: I checked what has been done on the Partial Response Writer for the Rendering. It is very

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-11 Thread Werner Punz
Hia Ganesh, I have to check the latest codebase, the version i have which is a few weeks old, did not have anything integrated... The main problem I see not doing it is, that usually the response writer already is in update stage when the components encode method is called which means every

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-10 Thread Ganesh
Hi Werner, Actually, I'm not quite sure which of the cases [1] to [4] (see below) you are referring to. Did you check the behaviour of Mojarra on this? In which case does it return eval? I'd say our PartialResponseWriter should work along the same basic line. My personal guess is they return

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-09 Thread Alexander Bell
(theActualScriptContent); -Matthias -- Forwarded message -- From: Werner Punz werner.p...@gmail.com mailto:werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-09 Thread Werner Punz
message -- From: Werner Punz werner.p...@gmail.com mailto:werner.p...@gmail.com mailto:werner.p...@gmail.com mailto:werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0

MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Werner Punz
Hello everyone: I checked what has been done on the Partial Response Writer for the Rendering. It is very basic, so I would propose following enhancement. Since we need separate eval blocks for javascripts, we implement a PartialResponseWriterImpl which fetches the scripts from components

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Werner Punz
Werner Punz schrieb: Hello everyone: I checked what has been done on the Partial Response Writer for the Rendering. It is very basic, so I would propose following enhancement. Since we need separate eval blocks for javascripts, we implement a PartialResponseWriterImpl which fetches the

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Matthias Wessendorf
isn't it better to do this in IE: window.execScript(theActualScriptContent); and in FF and other this: window.eval(theActualScriptContent); -Matthias -- Forwarded message -- From: Werner Punz werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Werner Punz
); -Matthias -- Forwarded message -- From: Werner Punz werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org Werner Punz schrieb: Hello everyone: I checked what has been done on the Partial Response

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Werner Punz
: window.execScript(theActualScriptContent); and in FF and other this: window.eval(theActualScriptContent); -Matthias -- Forwarded message -- From: Werner Punz werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Cagatay Civici
and other this: window.eval(theActualScriptContent); -Matthias -- Forwarded message -- From: Werner Punz werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org Werner Punz schrieb: Hello

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Ganesh
werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org Werner Punz schrieb: Hello everyone: I checked what has been done on the Partial Response Writer for the Rendering. It is very basic, so I would propose following

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Alexander Bell
(theActualScriptContent); and in FF and other this: window.eval(theActualScriptContent); -Matthias -- Forwarded message -- From: Werner Punz werner.p...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org

Re: MyFaces 2.0 PartialResponseWriter + EVALs

2009-05-08 Thread Ganesh
...@gmail.com Date: Fri, May 8, 2009 at 4:54 PM Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs To: dev@myfaces.apache.org mailto:dev@myfaces.apache.org Werner Punz schrieb: Hello everyone: I checked what has been done