Return-Path: Delivered-To: apmail-incubator-myfaces-dev-archive@www.apache.org Received: (qmail 80741 invoked from network); 1 Dec 2004 13:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Dec 2004 13:33:43 -0000 Received: (qmail 37049 invoked by uid 500); 1 Dec 2004 13:33:39 -0000 Delivered-To: apmail-incubator-myfaces-dev-archive@incubator.apache.org Received: (qmail 36976 invoked by uid 500); 1 Dec 2004 13:33:38 -0000 Mailing-List: contact myfaces-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list myfaces-dev@incubator.apache.org Received: (qmail 36907 invoked by uid 99); 1 Dec 2004 13:33:36 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=FORGED_RCVD_HELO,HTML_40_50,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mailgwvw01.freelance.com (HELO mailgwvw01.freelance.com) (207.234.129.118) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 01 Dec 2004 05:33:31 -0800 Received: from mailgwvw02.freelance.com (mailgwvw02.freelance.com [207.234.129.52]) by mailgwvw01.freelance.com (8.12.3/8.12.3) with ESMTP id iB1DY3s5002611 for ; Wed, 1 Dec 2004 14:34:03 +0100 Received: from 10.0.0.101 ([200.88.145.171]) by mailgwvw02.freelance.com (Lotus Domino Release 5.0.12) with ESMTP id 2004120114332290:2592 ; Wed, 1 Dec 2004 14:33:22 +0100 Subject: Re: SV: Javascript Hell From: Sylvain Vieujot To: MyFaces Development In-Reply-To: <41ADC294.8090206@apache.org> References: <1101838655.12472.113.camel@localhost.localdomain> <41AD8904.9090404@apache.org> <1101904367.12472.145.camel@localhost.localdomain> <41ADC294.8090206@apache.org> Date: Wed, 01 Dec 2004 09:33:17 -0400 Message-Id: <1101907997.12472.158.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) X-MIMETrack: Itemize by SMTP Server on mailgw01/Freelance(Release 5.0.12 |February 13, 2003) at 12/01/2004 02:33:23 PM, Serialize by Router on mailgw01/Freelance(Release 5.0.12 |February 13, 2003) at 12/01/2004 02:33:24 PM, Serialize complete at 12/01/2004 02:33:24 PM Content-Type: multipart/alternative; boundary="=-jY/+VW7owhOSRvZiuD54" X-Spam-Status: No, hits=1.1 required=5.0 tests=HTML_90_100,HTML_MESSAGE autolearn=no version=2.63 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on mailgwvw01.freelance.com X-Virus-Scanned: ClamAV 0.80rc/611/Mon Nov 29 15:02:55 2004 clamav-milter version 0.80 on 127.0.0.1 X-Virus-Status: Clean X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-jY/+VW7owhOSRvZiuD54 Content-Transfer-Encoding: 7bit Content-Type: text/plain Hello Manfred, I'll look at it, but I don't think this would work because sometime (most of the time for me), the JSF part of the page is just a section of the body. In starting to implement the Servlet we talked about, I found another way that I find better : Today, we have a Multipart filter for the x:fileUpload. As we have to declare this filter in the web.xml, I'm generalizing this filter so that it does the Multipart thing, and serves the resources. Also, the a filter is better than a servlet, because if we use a servlet, we have to know it's path in advance, whereas for a filter, we don't need to add a predefined path to the web.xml. The name I choose for this filter is : org.apache.myfaces.component.html.util.ExtensionsFilter Then, in the doc, we just need to say that to use MyFaces with the extensions, the above ExtensionsFilter needs to be referenced in the web.xml At least, I think this will solve the , it's definitely allowed to use it > >>> in the body : > >>> http://www.w3.org/TR/html401/interact/scripts.html > >> > >>Yes, only thing to take care of is to not reference a script twice. This > >>could either be handled by the components themselves or by the facility > >>method you mentioned. > >> > >> > >>> For the element the specs says that it should go only in the > >>> head ... BUT the limited tests I did show that it works (I don't know if > >>> it always works though). > >>> http://www.w3.org/TR/html401/struct/links.html#h-12.3 > >>> My guess is that it works, but it fails to provide the user with the > >>> style sheet alternatives. I don't think this is a problem though as the > >>> style sheets we will include this way are meant for the components, not > >>> for the whole page display. > >>> > >>> What do you think ? > >>> Can we still do it for style sheets ? > >>> Is there another way to do it for elements or for style sheets ? > >> > >>Hmmm. This means we would knowingly break HTML 4.01 conformance. I fear, > >>people will rail against this if they validate the HTML code that is > >>rendered by MyFaces. > >>I suggest the following: We always include a css link for every > >>component on every page. This would be the standard configuration and > >>since browsers cache css I don't think this would be a performance > >>problem. To allow MyFaces to automatically include something in the html > >>head we introduce a new extended tag that the user must include in the > >>head sections of his JSP. This is the tag that Hermod mentioned. > >>We could then add expert configuration params that allow to explicitly > >>disable single components, so that there is no unnecessary link rendered. > >>Another way is, to not use or