portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raphael.l...@networks.groupvu.com
Subject Re: context
Date Sun, 12 May 2002 14:23:50 GMT
David Sean Taylor wrote:

>Why is there more than one context?
>In a turbine action, if I do
>        Context context = TurbineVelocity.getContext(data);
>	  context.put("thing", thing);
>And then in a velocity  page, I try
>	$thing
>It doesn't find it.

I don't think it's a good idea to use the global app context for the 
protlet as they may otherwise
screw jetspeed application context by mistake (think for example that 
you want to display a dynamic
object from the context in the bottom navigation...).
So VelocityPortlet creates an independant context for each instance.

Raphaƫl Luta - raphael.luta@networks.groupvu.com
Professional Services Manager
Vivendi Universal Networks - Paris

To unsubscribe, e-mail:   <mailto:jetspeed-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:jetspeed-dev-help@jakarta.apache.org>

View raw message