Return-Path: Delivered-To: apmail-tiles-users-archive@locus.apache.org Received: (qmail 30192 invoked from network); 3 Jan 2009 12:00:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jan 2009 12:00:35 -0000 Received: (qmail 42677 invoked by uid 500); 3 Jan 2009 12:00:35 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 42559 invoked by uid 500); 3 Jan 2009 12:00:35 -0000 Mailing-List: contact users-help@tiles.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@tiles.apache.org Delivered-To: mailing list users@tiles.apache.org Received: (qmail 42548 invoked by uid 99); 3 Jan 2009 12:00:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 04:00:35 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mail@nlebas.net designates 87.98.134.197 as permitted sender) Received: from [87.98.134.197] (HELO mithlond.nlebas.net) (87.98.134.197) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Jan 2009 12:00:25 +0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=net1; d=nlebas.net; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=V1h3o1cwhHfhs3Aox8yuPFZa3Nu+2yLX4buI9neL8U3c3WcxTQdg1R8VFpQKxuTQ8scBUEI3QJxwzDFJdACgfBzRyaK0eKNxSOR/lketgwFbJB0exubGZH8xd0JEuQWQd06Z6o2eOavM5+mOiFGJYK0g2Ljljju7RwBOx2hHe0M=; Received: from elostirion.nlebas.net ([82.225.145.109] helo=bag-end.nlebas.net) by mithlond.nlebas.net with esmtp (Exim 4.69) (envelope-from ) id 1LJ5Ai-0002Ng-Bw for users@tiles.apache.org; Sat, 03 Jan 2009 13:00:04 +0100 Message-ID: <495F5343.1070300@nlebas.net> Date: Sat, 03 Jan 2009 13:00:03 +0100 From: Nicolas LE BAS User-Agent: Thunderbird 2.0.0.17 (X11/20080914) MIME-Version: 1.0 To: users@tiles.apache.org Subject: Re: Tiles 2.1 with JSF 1.2 - definition update References: <495F4998.6040101@gmail.com> In-Reply-To: <495F4998.6040101@gmail.com> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hello, I'm not any good with the Java API for Tiles, but since you're using the amazing Tiles 2.1, why not use: request.setAttribute("left", "/WEB-INF/tiles/new.jsp"); and reference it with "${left}" in the tiles definition ? (instead of the code below) Besides, perhaps the JSF view is not rendered for reasons unrelated to tiles, or unrelated to this particular attribute (your suggesting to use getRequestDispatcher().forward() instead of the navigation rule from JSF worries me...). Can you give us more detail about the tiles definition "myDef" and the JSF configuration and the various JSPs involved ? Hope this helps, Nick Jacek Wo�niczak wrote: > TilesContainer container = TilesAccess.getContainer( > request.getSession().getServletContext()); > AttributeContext at = container.startContext(request,response); > > //modify definition attribute > at.putAttribute("left", new Attribute("/WEB-INF/tiles/new.jsp")); > container.render("myDef", request,response); > container.endContext(request,response);