Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 37011 invoked from network); 9 May 2009 08:25:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 May 2009 08:25:52 -0000 Received: (qmail 58528 invoked by uid 500); 9 May 2009 08:25:51 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 58434 invoked by uid 500); 9 May 2009 08:25:51 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 58426 invoked by uid 99); 9 May 2009 08:25:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 May 2009 08:25:51 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcjmu-myfaces-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 May 2009 08:25:41 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M2hrp-00010C-Sd for dev@myfaces.apache.org; Sat, 09 May 2009 08:25:12 +0000 Received: from cm56-216-195.liwest.at ([86.56.216.195]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 May 2009 08:25:09 +0000 Received: from werner.punz by cm56-216-195.liwest.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 09 May 2009 08:25:09 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: dev@myfaces.apache.org From: Werner Punz Subject: Re: MyFaces 2.0 PartialResponseWriter + EVALs Date: Sat, 09 May 2009 10:24:57 +0200 Lines: 251 Message-ID: References: <71235db40905080850i66653082h60a878631a69aaff@mail.gmail.com> <4A049240.40707@J4Fry.org> <4A04A498.1000303@J4Fry.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cm56-216-195.liwest.at User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) In-Reply-To: Sender: news X-Virus-Checked: Checked by ClamAV on apache.org I have to evaluate that because generally the insertBefore did not trigger on all non IE browsers in the embedded case (Safari for instance failed as well, while Opera was working) so I had to embed our browser check code... Anyway the safe bet probably is to load the script synchronously via xhr and eval it manually in that case! The unsafe bet is to have the browser doing this automatically. Either way is fine with me since both methods are just a few lines of code. My personal question was more along the lines if there are any obstacles to add the eval behavior as described to the PartialResponseWriter, and how does facelets trigger the response writer in this regard. (Facelets theorectically allows to use scripts just as plain html thus we cannot use the startElement("script" approach in this case unless facelets can map single tags into startElement calls) Werner Alexander Bell schrieb: > Hi, > > I've tried the example. It works +1 > So we can use document.createElement("script") for [3] and [4] > > regards alex > > > 2009/5/8 Ganesh > > > It does work (even cross-browser). Try this: > > * > > > > > > > with test.js having one line: > alert('test'); > > It's the DOM action that triggers the script execution. > > Best regards, > Ganesh > * > Alexander Bell schrieb: > > Hi, > > I don't understand the solution for [3]. > I've got for instance the following tag on my page: (or component writes this directly to the stream) > [3] markup contains > [4] markup contains