Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 21069 invoked from network); 29 Mar 2007 00:01:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 00:01:05 -0000 Received: (qmail 27954 invoked by uid 500); 29 Mar 2007 00:01:07 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 27917 invoked by uid 500); 29 Mar 2007 00:01:07 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 27906 invoked by uid 99); 29 Mar 2007 00:01:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 17:01:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [203.109.151.109] (HELO email.rhe.co.nz) (203.109.151.109) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 17:00:58 -0700 Received: from [192.168.50.47] ([192.168.50.47]) by email.rhe.co.nz (Lotus Domino Release 7.0.2) with ESMTP id 2007032912003196-156997 ; Thu, 29 Mar 2007 12:00:31 +1200 Message-ID: <460B0193.8040708@rhe.co.nz> Date: Thu, 29 Mar 2007 12:00:19 +1200 From: Simon Kitching User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: [RESOLVED] How to add inline javascript in application phase? References: <2FAA1F5E4DDAEB4BAE2346562E4B060C3E4392@dedus-mail03.DE.valtech.com> <46097755.2090209@rhe.co.nz> <2FAA1F5E4DDAEB4BAE2346562E4B060C3E43BA@dedus-mail03.DE.valtech.com> <8f985b960703272020o61455c15w4c65d5badc3d04cf@mail.gmail.com> <4609E16D.4000301@rhe.co.nz> <2FAA1F5E4DDAEB4BAE2346562E4B060C3E43BB@dedus-mail03.DE.valtech.com> <2FAA1F5E4DDAEB4BAE2346562E4B060C3E43E2@dedus-mail03.DE.valtech.com> In-Reply-To: <2FAA1F5E4DDAEB4BAE2346562E4B060C3E43E2@dedus-mail03.DE.valtech.com> X-MIMETrack: Itemize by SMTP Server on RHEDomino2/RHE(Release 7.0.2|September 26, 2006) at 29/03/2007 12:00:31 p.m., Serialize by Router on RHEDomino2/RHE(Release 7.0.2|September 26, 2006) at 29/03/2007 12:00:54 p.m. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Ahh..yes, that looks right. StreamingAddResource does try to write it=20 immediately (and therefore doesn't really support that ResourcePosition=20 parameter). And that means that it cannot be used from the=20 invoke-application phase to register stuff to be output later. Perhaps you could update the wiki with that info? Carsten Kaiser wrote: > Ok, I guess I figured out the reason, which causes the solution suggested= on the Wiki page to fail: > In our web application class StreamingAddResource is configured to be use= d to add resources like JavaScript, CSS etc. to the response, which attempt= s to write any resource immediately to the response writer. The DefaultAddR= esource class instead holds a set for each supported resource position wher= ein all added resources are kept until they are rendered on completion of t= he render response phase. So later implementation only allows to control po= pup triggering within the invoke application phase! >=20 > Regards, > CAK =20 >=20 > -----Urspr=FCngliche Nachricht----- > Von: Carsten Kaiser [mailto:carsten.kaiser@valtech.de]=20 > Gesendet: Mittwoch, 28. M=E4rz 2007 06:10 > An: MyFaces Discussion > Betreff: AW: How to add inline javascript in application phase? >=20 > Hello Simon, >=20 > thank you very much for his hint. I really could have thought about=20 > looking for any other value of resource position! I will give it a try!=20 > Hope, that BODY=5FONLOAD will not ask for the ResponseWriter... >=20 > Regards, > CAK >=20 >=20 >=20