You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org> on 2007/08/24 06:18:31 UTC
[jira] Commented: (VELOCITY-146) Macros not evaluated on the first
attempt with #parse
[ https://issues.apache.org/jira/browse/VELOCITY-146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12522369 ]
Will Glass-Husain commented on VELOCITY-146:
--------------------------------------------
This is solved and in svn head. (for version 1.6). See more detailed comments in VELOCITY-362.
> Macros not evaluated on the first attempt with #parse
> -----------------------------------------------------
>
> Key: VELOCITY-146
> URL: https://issues.apache.org/jira/browse/VELOCITY-146
> Project: Velocity
> Issue Type: Improvement
> Components: Engine
> Affects Versions: 1.5
> Environment: Operating System: All
> Platform: PC
> Reporter: Sami Leino
> Priority: Minor
> Fix For: 1.6
>
> Attachments: wml_templates.zip
>
>
> I have noticed that sometimes macros do not get evaluated after Velocity has
> just been started. A subsequent request for the same resource produces a valid
> document, where macros are now correctly evaluated.
> Here's an example: I have a WAP-Mail webapp, which runs on Tomcat 3.3a. It uses
> Velocity to render the content, and the Velocity versions I have used are 1.2-
> dep, 1.3-dep and 1.3.1-dep. This problem occurs with all of these versions.
> The first request should produce a message list (there's an autologin feature,
> so the message list page is the first one being accessed). Here's the most
> relevant part of the content:
> ------------------------------------------------------------------------------
> <p>Folder: INBOX<br/></p>
> <p>
> <br/><b>Date: 05.03 11:16</b>
> <br/>Sender: John Doe
> <br/>Subject: <a href="/wapmail/message/show/
--
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org