Thank you Paul,

it works. I did it with user.getTemp(...). Why should I be careful to use
this approach?

Matthias




> -----Original Message-----
> From: Paul Spencer [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 08, 2002 10:26 PM
> To: Jetspeed Users List
> Subject: Re: variables in Velocity
> 
> 
> Matthias,
> 
> Wimmer, Matthias wrote:
> 
> > Hi,
> > 
> > while the portal page is rendered it makes use of various 
> VM files. Let's
> > say controller.vm and portlet.vm. As the portlet is inside of the
> > controller, the controller's VM-file is rendered first, isn't it? 
> 
> Yes, the controller is rendered before it's inner 
> controller/controls/portlets.  But keep in mind, if their are several 
> layers of tab, or may columns of tab,  then controller.vm will be 
> execute many times.
> 
> > 
> > This is my problem:
> > I would like to set a variable inside of controller.vm and 
> read it in
> > portlet.vm.
> > 
> > Is that possible? Even without any changes to the Java classes?
> You may be able to do pass variables via the user's 
> get/setTemp or rundata. I
> 
> would be very careful using this approach.  It may be cleaner 
> to extend 
> a controller to meet your needs.
> 
> 
> > 
> > 
> > 
> > Thank you in advance
> > 
> > Matthias Wimmer
> > 
> 
> 
> Paul Spencer
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to