jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: invocation of javascript
Date Sun, 14 Jun 2009 20:59:18 GMT

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 :
>
>  <s:layout-component name="script"> ...
>
>
>
> 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


Mime
View raw message