You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by Gerry Reno <gr...@yahoo.com> on 2003/12/05 00:38:46 UTC

RE: DO NOT REPLY [Bug 24963] - Velocity reference problem in navigation file

> I put a declaration for
> topnav.logo.background.file in the properties file and was able to
access
> it via
> top.vm as you would expect EXCEPT that this caused the original
Velocity
> variable to be ignored.  Moving them around showed that the second
one got
> processed and the first one got ignored.  This doesn't seem like
correct
> behavior.  With JSP I can put any number of variables in a file and
they

Dumb question, do the two variables in question have the same name?  If
so, this \
makes perfect sense as the variables are managed within the same
velocity context.  \
The top.vm is parsed along with the layout and other navigation
templates, and as \
such, they share they use the same context.   This why each portlet,
control and \
controller template have their own individual scoped context's, to
avoid stepping on \
each others' feet.

Hth,
*================================* 
> Scott T Weaver                 |
> <we...@apache.org>            | 
> Apache Jetspeed Portal Project |
> Apache Pluto Portlet Container |
*================================*

Scott,
  Not a dumb question.  And to answer the question, the variables have
different names.  They have the same beginning and the same end but the
middle of the variable names is different.  Different is different. 
Velocity shouldn't have any problem distinguishing that these are two
different references.



=====
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/

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