Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 62298 invoked from network); 6 Mar 2008 21:49:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Mar 2008 21:49:52 -0000 Received: (qmail 8176 invoked by uid 500); 6 Mar 2008 21:49:45 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 8149 invoked by uid 500); 6 Mar 2008 21:49:45 -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 Delivered-To: moderator for users@myfaces.apache.org Received: (qmail 27448 invoked by uid 99); 4 Mar 2008 08:02:49 -0000 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: local policy) Date: Tue, 4 Mar 2008 11:02:18 +0300 From: Penkov Vladimir To: users@myfaces.apache.org Subject: jsf pluggable pages Message-ID: <20080304110218.24f3199d@penkov.internal.fotobank.ru> Organization: =?Windows-1251?B?1O7y7uHg7eo=?= X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.1; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Antivirus: Dr.Web (R) for Mail Servers on relay host X-Antivirus-Code: 100000 X-Virus-Checked: Checked by ClamAV on apache.org 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?