Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 71189 invoked from network); 6 Mar 2008 22:05:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 22:05:47 -0000 Received: (qmail 43238 invoked by uid 500); 6 Mar 2008 22:05:39 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 43205 invoked by uid 500); 6 Mar 2008 22:05:39 -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 43194 invoked by uid 99); 6 Mar 2008 22:05:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 14:05:39 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mkienenb@gmail.com designates 64.233.166.178 as permitted sender) Received: from [64.233.166.178] (HELO py-out-1112.google.com) (64.233.166.178) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 22:05:04 +0000 Received: by py-out-1112.google.com with SMTP id z57so115930pyg.34 for ; Thu, 06 Mar 2008 14:05:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=43ylmEFGm0sLxz9pNDD3Wp1yITxYPpXq4ekemu4VOrs=; b=wT7hbJRkXJ5NrLCp2QhU0+EuncfgCKOEROa3MEBtR3zb73roU2603TSthplYcMF0dUeiARKkGNxUtmZXUSWTvUi8evvst+x1qNIza73WGhgoxIa6RP0ihuv2vkvJpwVM2ORBb1rnTjv4/OYZfg5ysidRQEjTFaNNl6BDjskoy/M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P4r2Iu//PjyQmSNu0dKif63Ul3HVrLI8PHlLsLOL39AqvKU8noUzOxjy+Nd4n8yE5xMRu/0RxGqHWowyCIs1/pamyJJKUlzm2OwnbIoKG8oEXuYpyR5Jp8O8jXz/rPRDHpTJuX3I/4Z+fo2xmFWvVZoJ1y+fWDGn1+QOrpR7ASs= Received: by 10.35.96.11 with SMTP id y11mr599545pyl.44.1204841114336; Thu, 06 Mar 2008 14:05:14 -0800 (PST) Received: by 10.35.71.7 with HTTP; Thu, 6 Mar 2008 14:05:14 -0800 (PST) Message-ID: <8f985b960803061405i26c0a2cahe07f8f55cacc46df@mail.gmail.com> Date: Thu, 6 Mar 2008 17:05:14 -0500 From: "Mike Kienenberger" To: "MyFaces Discussion" Subject: Re: jsf pluggable pages In-Reply-To: <20080304110218.24f3199d@penkov.internal.fotobank.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080304110218.24f3199d@penkov.internal.fotobank.ru> X-Virus-Checked: Checked by ClamAV on apache.org I'm not sure how you'd do it for jsp pages, but I think your facelets xhtml files will be found without any problems in the jar. I can't remember if it requires configuring a resource loader, though. On 3/4/08, Penkov Vladimir wrote: > I have jsf application, written using facelets. I want it to be extedable with custom modules. > Module is simple jar with faces-context.xml in it. I can place it in /WEB-INF/lib directory, register somehow in my app, for example by specifying main class of module, so later, after deploy, I can reach all resources from this jar. > As specified in spec, I can add managed beans and custom navigation rules into module's faces-context.xml. But what about jsp pages? How can I add them and later tell my main app to use them? For example, I have rule: > > /modules/test/foo.jsp > > #{moduleBean.doSmth} > /modules/test/foo1.jsp > > > > (let's say, that every module must use /modules/ prefix). > Both foo.jsp and foo1.jsp are located in module_test.jar, which is (as > Imentioned before) in /WEB-INF/lib folder of my main app. So how will > main app understand that it must load jsp's from module_test.jar? >