You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2016/07/22 06:20:20 UTC
[jira] [Closed] (VELOCITY-838) ForEach (Iteration) issue after
upgrading from 1.5 to 1.7
[ https://issues.apache.org/jira/browse/VELOCITY-838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claude Brisson closed VELOCITY-838.
-----------------------------------
Resolution: Invalid
Assignee: Claude Brisson
Fix Version/s: (was: 1.7.x)
Is "$someVariable.$anotherCollection" normal or is it a typo?
Which class is $anotherVariable?
Please provide a minimal test case for us to reproduce the problem. As such, we really lack informations.
> ForEach (Iteration) issue after upgrading from 1.5 to 1.7
> ---------------------------------------------------------
>
> Key: VELOCITY-838
> URL: https://issues.apache.org/jira/browse/VELOCITY-838
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7
> Environment: Tomcat 6, JDK 1.6
> Reporter: Ramiz Uddin
> Assignee: Claude Brisson
>
> After, upgrading to velocity engine `1.7` from `1.5` an issue occurs which was not with 1.5. To explain the issue I would have to show a code snippet:
> #foreach($someVariable in $someCollection)
> #foreach($anotherVariable in $someVariable.$anotherCollection)
> $anotherVariable.someAttribute ## This expression print in the browser as is
> ## but if I do this way
> $anotherVariable.get("someAttribute") ## works fine!
> #end
> #end
> This is happening after the upgrade (which is in `1.7`) and if I rollback the upgrade (move back to `1.5`) then I don't have to it in other way which I mention in above code snippet.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org