portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Resolved: (JS2-1093) To use #parse() velocity macro can cause unexpected behavior with Velocity 1.5
Date Wed, 06 Jan 2010 14:19:54 GMT

     [ https://issues.apache.org/jira/browse/JS2-1093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Woonsan Ko resolved JS2-1093.
-----------------------------

    Resolution: Fixed

> To use #parse() velocity macro can cause unexpected behavior with Velocity 1.5
> ------------------------------------------------------------------------------
>
>                 Key: JS2-1093
>                 URL: https://issues.apache.org/jira/browse/JS2-1093
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Admin Portlets, Layout
>    Affects Versions: 2.2.0
>            Reporter: Woonsan Ko
>            Assignee: Woonsan Ko
>             Fix For: 2.2.1
>
>
> I think it hasn't been a good practice to use "#parse" macro in header.vm to use velocity
macros with Velocity 1.5.
> In the documentation of Velocity 1.5, it says, "because the #parse() happens at runtime,
and the parser decides if a VM-looking element in the template is a VM at  parsetime, #parse()-ing
a set of VM declarations won't work as expected. To get around this, simply use the velocimacro.library
facility to have Velocity load your VMs at startup." [1] By the way, we cannot use velocitymacro.library
facility because each layout decorator should be able to have each own macros.
> Luckily, by the way, Velocity 1.6 seems to have already resolved this problem!
> It says, "Yes! This became possible in Velocity 1.6." in the same section. [2]
> Therefore, I'd like to try to upgrade the velocity version to 1.6.3.
> [1] http://velocity.apache.org/engine/releases/velocity-1.5/user-guide.html#velocimacro_miscellany
> [2] http://velocity.apache.org/engine/releases/velocity-1.6.2/user-guide.html#Velocimacro_Miscellany

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message