Return-Path: Delivered-To: apmail-tiles-users-archive@minotaur.apache.org Received: (qmail 58282 invoked from network); 2 Apr 2009 21:18:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Apr 2009 21:18:14 -0000 Received: (qmail 57368 invoked by uid 500); 2 Apr 2009 21:18:14 -0000 Delivered-To: apmail-tiles-users-archive@tiles.apache.org Received: (qmail 57296 invoked by uid 500); 2 Apr 2009 21:18:13 -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 57281 invoked by uid 99); 2 Apr 2009 21:18:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 21:18:13 +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: domain of antonio.petrelli@gmail.com designates 209.85.220.165 as permitted sender) Received: from [209.85.220.165] (HELO mail-fx0-f165.google.com) (209.85.220.165) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 21:18:07 +0000 Received: by fxm9 with SMTP id 9so715688fxm.8 for ; Thu, 02 Apr 2009 14:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=FeZdtTIrhi69FlY35EE45AnmD8DlzhyWQXazzUfVxkA=; b=d5xMMXrnneZ5c7UUkppKk6rZVkQFcZfqyzBRU6/sIB6LZIiPH/BCkv5DvXWyp59fkZ yRnaZFeUF5V2Pg3CQGIj4nEIVVdP9qhN3NmNv9OHC+nkj7B8R7vVoR6Ky9lhkgrRZYF5 PF6lF1u/qPEepNkW6DG1rsQ+vZ0MXh6PT9AgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Wr5b3ziDaRAaykBctSyJnoozpYdFgfe3WlD4/WYgseXbnbx9a9CjnlvvLXxRpeXMuz w67GTsc1zA6a3+hnJrLu9IT5q6EkmacD1kjJ9T5QpzfRMsPOLMaKHKEm+CQPAaqS44er 474+GqqGPU/yClSLysOG1DneqRBQsBZ/HAoek= MIME-Version: 1.0 Received: by 10.103.240.15 with SMTP id s15mr216285mur.93.1238707065494; Thu, 02 Apr 2009 14:17:45 -0700 (PDT) In-Reply-To: <6f4104d80904011340l60c37866x828dcf2e2d0718d7@mail.gmail.com> References: <6f4104d80904011340l60c37866x828dcf2e2d0718d7@mail.gmail.com> Date: Thu, 2 Apr 2009 23:17:45 +0200 Message-ID: Subject: Re: Freemarker and TIles PutAttribute From: Antonio Petrelli To: users@tiles.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2009/4/1 Amin Mohammed-Coleman : > java.lang.IllegalArgumentException: Cannot find a factory to create > the request context This is because you've not configured a Tiles request context factory for FreeMarker. > Looking at the test tiles from svn I can see a testtileslistener which > extends tileslistener. I need to configure a listener in my web.xml > however the test contains quite a number of other classes which I > don't know if I need. =A0Is there a extended tileslistener that I can > use? You have two choices: 1) using parameter-based initialization, by setting this parameter: http://tiles.apache.org/framework/config-reference.html#org.apache.tiles.co= ntext.ChainedTilesRequestContextFactory.FACTORY_CLASS_NAMES 2) Using pure Java configuration: http://tiles.apache.org/framework/tutorial/configuration.html#Startup_with_= Java_code http://tiles.apache.org/framework/tutorial/configuration.html#Pure_Java_con= figuration In particular you have to override this method of BasicTilesContainerFactor= y: http://tiles.apache.org/framework/apidocs/org/apache/tiles/factory/BasicTil= esContainerFactory.html#registerChainedRequestContextFactories(org.apache.t= iles.context.ChainedTilesRequestContextFactory) HTH Antonio