> 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                 |
| <[EMAIL PROTECTED]>            | 
| Apache Jetspeed Portal Project |
| Apache Pluto Portlet Container |
*================================*

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 25, 2003 12:35 PM
> To: [EMAIL PROTECTED]
> Subject: DO NOT REPLY [Bug 24963] - Velocity reference problem in
> navigation file
> 
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24963>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24963
> 
> Velocity reference problem in navigation file
> 
> 
> 
> 
> 
> ------- Additional Comments From [EMAIL PROTECTED]  2003-11-25 17:35 -----
> --
> David,
>   It's not whether topnav.logo.background.file is currently in or not in
> JetspeedResources.properties.  It's the fact that Jetspeed (or Velocity)
> is not
> allowing more than one Velocity substitution to occur.  Using the exact
> same
> format as currently exists in top.vm 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
> will
> all substitute correctly.
> 
> Gerry Reno
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to