Return-Path: Delivered-To: apmail-incubator-jspwiki-dev-archive@minotaur.apache.org Received: (qmail 97856 invoked from network); 14 Jun 2009 20:59:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jun 2009 20:59:55 -0000 Received: (qmail 99158 invoked by uid 500); 14 Jun 2009 21:00:06 -0000 Delivered-To: apmail-incubator-jspwiki-dev-archive@incubator.apache.org Received: (qmail 99145 invoked by uid 500); 14 Jun 2009 21:00:06 -0000 Mailing-List: contact jspwiki-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jspwiki-dev@incubator.apache.org Delivered-To: mailing list jspwiki-dev@incubator.apache.org Received: (qmail 99134 invoked by uid 99); 14 Jun 2009 21:00:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2009 21:00:06 +0000 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 Janne.Jalkanen@ecyrd.com designates 193.64.5.122 as permitted sender) Received: from [193.64.5.122] (HELO mail.ecyrd.com) (193.64.5.122) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Jun 2009 20:59:56 +0000 Received: from [192.168.0.10] (cs181005170.pp.htv.fi [82.181.5.170]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.ecyrd.com (Postfix) with ESMTPSA id D232597C20C for ; Sun, 14 Jun 2009 23:59:20 +0300 (EEST) Message-Id: <02709877-DF0F-4459-B742-F5CB39450FCA@ecyrd.com> From: Janne Jalkanen To: jspwiki-dev@incubator.apache.org In-Reply-To: <15cc92000906140646k12589dffs722bd83736dcea54@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: invocation of javascript Date: Sun, 14 Jun 2009 23:59:18 +0300 References: <15cc92000906140646k12589dffs722bd83736dcea54@mail.gmail.com> X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org Yup, still supported. Plugins and filters use this mechanism. Might be nicer to add a JSP Tag for it, since the syntax is fugly for JSPs... /Janne On Jun 14, 2009, at 16:46 , Dirk Frederickx wrote: > Q. > In v3.x the invocation of javascript has been moved to the top-level > JSPs, > by means of : > > ... > > > > In v2.x this was done from within the template jsp, through the > TemplateManager. Eg: > > TemplateManager.addResourceRequest( context, "script", > contextPath + > "/scripts/jspwiki-edit.js" ); > > > What is rationale for this ? > IMHO, the solution of v2.x gives more flexibilty to template specific > adaptations, rather then having to modifty the top-level jsp's. > Is the old solution still supported ? > > > > dirk