You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Dion Gillard <di...@gmail.com> on 2004/10/27 17:33:02 UTC
Re: [Jelly] How to create and use custom scope with standard tag libr ary ?
What about using the scope tag?
On Wed, 27 Oct 2004 09:40:08 +0200, Marc DEXET <ma...@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