commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dion Gillard <dion.gill...@gmail.com>
Subject Re: [Jelly] How to create and use custom scope with standard tag libr ary ?
Date Wed, 27 Oct 2004 15:33:02 GMT
What about using the scope tag?


On Wed, 27 Oct 2004 09:40:08 +0200, Marc DEXET <marc.dexet@dsi.cnrs.fr> wrote:
> Hello everybody.
> 
> The new big question of the morning (and just before coffee : it's rude !)
> 
> How can I create custom scope (other than 'parent') with usual libs ?
> 
> A very simple example :
> 
> <j:jelly xmlns:j="jelly:core">
>         <j:set var="item" scope="myScope" value="bike"/>
>         <j:expr value="${myScope.item}"/>
> </j:jelly>
> 
> Of course, as there's no scope nammed "myScope" in usual context,
> setVariable(name, scope, object) don't put the var in context.
> 
> Second question : assumed the fact I succeed to put "myScope.item".
> 
> If a call ${myScope.item} how could findVariable(String) and getVariable(...
> 
> [STOP] Oooops ! I get the answer
> In JellyContext @version $Revision: 1.10 $
> it's wrote
> 
>  // ### this is a hack - remove this when we have support for pluggable
> Scopes
> 
> Ok ok, so my quest is ended here ?
> 
> Bad day, hope good coffee :)
> 
> --
> Marc DeXeT
> 
> 


-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message