Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 42439 invoked from network); 21 Aug 2006 04:00:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2006 04:00:54 -0000 Received: (qmail 84005 invoked by uid 500); 21 Aug 2006 04:00:53 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 83968 invoked by uid 500); 21 Aug 2006 04:00:53 -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 83957 invoked by uid 99); 21 Aug 2006 04:00:53 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 21:00:53 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=RCVD_NUMERIC_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [205.178.146.56] (HELO omr6.networksolutionsemail.com) (205.178.146.56) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Aug 2006 21:00:52 -0700 Received: from mail.networksolutionsemail.com (ns-omr6.mgt.netsol.com [10.49.6.69]) by omr6.networksolutionsemail.com (8.13.6/8.13.6) with SMTP id k7L40UDW016477 for ; Mon, 21 Aug 2006 00:00:30 -0400 Received: (qmail 30609 invoked by uid 78); 21 Aug 2006 04:00:30 -0000 Received: from unknown (HELO webmail16) (205.178.146.50) by ns-omr6.lb.hosting.dc2.netsol.com with SMTP; 21 Aug 2006 04:00:30 -0000 Received: from 66.58.194.225 (dennis@dbyrne.net [66.58.194.225]) by webmail16 (EdgeDesk 4.02) with WEBMAIL id 32650; Mon, 21 Aug 2006 04:00:30 +0000 From: "Dennis Byrne" To: "MyFaces Development" Importance: Normal Sensitivity: Normal Message-ID: X-Mailer: Mintersoft EdgeDesk, Build 4.03.0105 X-Originating-IP: [66.58.194.225] X-Forwarded-For: [(null)] Date: Mon, 21 Aug 2006 04:00:30 +0000 Subject: Re: How to configure the default renderers and component within a Shale-Test based unit test MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I would be suprised if you found a quick and easy way to do this. MyFaces= core uses digester to unmarshal the config files. It then calls the API= you mention. I would start digging around in org.apache.myfaces.config .= Dennis Byrne >-----Original Message----- >From: Paul Spencer [mailto:paulsp@apache.org] >Sent: Sunday, August 20, 2006 11:42 PM >To: 'MyFaces Development' >Subject: How to configure the default renderers and component within a S= hale-Test based unit test > >I am writing a unit test based on the Shale Test Framework for a Tomahaw= k >component. My current problem is the I need to add the default MyFaces = and >Tomahawk components and renderers to the FacesContext. To date I have be= en >using facesContext.getApplication().addComponent(...) and >facesContext.getRenderKit().addRenderer(...). This is becoming very >cumbersome. I know the defaults are out their in various configuration = files, >but I do not know how to tell Shale's test framework how to use them. > >Suggestions? > >Paul Spencer > >