You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Razan Abbass (JIRA)" <de...@velocity.apache.org> on 2010/02/19 17:34:27 UTC

[jira] Commented: (VELOCITY-658) $velocityHasNext does not work in nested loops

    [ https://issues.apache.org/jira/browse/VELOCITY-658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835804#action_12835804 ] 

Razan Abbass commented on VELOCITY-658:
---------------------------------------

[buy tramadol cheap medication inurl|http://thoughtmesh.net/meshes.php?group=33]
[buy tramadol at a cheap price online|http://thoughtmesh.net/meshes.php?group=34]
[buy tramadol online without prescription|http://thoughtmesh.net/meshes.php?group=35]
[cheap tramadol|http://thoughtmesh.net/meshes.php?group=36]
[cheapest tramadol|http://thoughtmesh.net/meshes.php?group=37]
[buy tramadol cod|http://thoughtmesh.net/meshes.php?group=38]
[tramadol price|http://thoughtmesh.net/meshes.php?group=39]
[tramadol prescription from discount pharmacy|http://thoughtmesh.net/meshes.php?group=40]
[tramadol side effects|http://thoughtmesh.net/meshes.php?group=41]
[tramadol hcl|http://thoughtmesh.net/meshes.php?group=42]
[order tramadol online|http://thoughtmesh.net/meshes.php?group=43]
[side effects of tramadol|http://thoughtmesh.net/meshes.php?group=44]
[tramadol hcl 50 mg tab mylan|http://thoughtmesh.net/meshes.php?group=45]
[tramadol hcl 50mg tablet|http://thoughtmesh.net/meshes.php?group=46]
[tramadol withdraw|http://thoughtmesh.net/meshes.php?group=47]
[cheapest tramadol on line|http://thoughtmesh.net/meshes.php?group=48]
[agcode book buy com guest site tramadol|http://thoughtmesh.net/meshes.php?group=49]
[canine tramadol dosage|http://thoughtmesh.net/meshes.php?group=50]
[cheap tramadol fedex overnight|http://thoughtmesh.net/meshes.php?group=51]
[tramadol prescription drug|http://thoughtmesh.net/meshes.php?group=52]
[side effects tramadol|http://thoughtmesh.net/meshes.php?group=53]
[tramadol hci|http://thoughtmesh.net/meshes.php?group=54]
[tramadol hcl|http://thoughtmesh.net/meshes.php?group=55]
[side effects of tramadol hydrochloride|http://thoughtmesh.net/meshes.php?group=56]
[tramadol sales|http://thoughtmesh.net/meshes.php?group=57]
[medication tramadol hcl|http://thoughtmesh.net/meshes.php?group=58]
[tramadol medicine|http://thoughtmesh.net/meshes.php?group=59]
[tramadol 50 mg|http://thoughtmesh.net/meshes.php?group=60]
[tramadol no prescription fedex|http://thoughtmesh.net/meshes.php?group=61]
[cheap tramadol cod delivery|http://thoughtmesh.net/meshes.php?group=62]
[online pharmacy tramadol|http://thoughtmesh.net/meshes.php?group=63]
[order tramadol online|http://thoughtmesh.net/meshes.php?group=64]
[buy cheap tramadol o|http://thoughtmesh.net/meshes.php?group=65]
[tramadol overnight|http://thoughtmesh.net/meshes.php?group=66]
[can i take tramadol pain pills if theyre a year old|http://thoughtmesh.net/meshes.php?group=67]
[tramadol pharmacy|http://thoughtmesh.net/meshes.php?group=68]
[what does the pill tramadol look like|http://thoughtmesh.net/meshes.php?group=69]
[tramadol pills|http://thoughtmesh.net/meshes.php?group=70]
[prescription tramadol|http://thoughtmesh.net/meshes.php?group=71]
[tramadol prescriptions|http://thoughtmesh.net/meshes.php?group=72]
[best price on tramadol 50 and 100 mg|http://thoughtmesh.net/meshes.php?group=73]
[tramadol sale us no prescription required|http://thoughtmesh.net/meshes.php?group=74]
[tramadol side effects|http://thoughtmesh.net/meshes.php?group=75]
[tramadol buy online|http://thoughtmesh.net/meshes.php?group=76]
[tramadol ultram|http://thoughtmesh.net/meshes.php?group=77]
[tramadol veterinary dose|http://thoughtmesh.net/meshes.php?group=78]
[tramadol drug|http://thoughtmesh.net/meshes.php?group=79]
[is tramadol a narcotic|http://thoughtmesh.net/meshes.php?group=80]
[buy cheap tramadol online inurl|http://thoughtmesh.net/meshes.php?group=81]


> $velocityHasNext does not work in nested loops
> ----------------------------------------------
>
>                 Key: VELOCITY-658
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-658
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.6, 1.6.1
>            Reporter: Jarkko Viinamäki
>            Priority: Minor
>             Fix For: 1.7
>
>         Attachments: velocity-hasNext-bug.patch
>
>
> With this test case:
> assertEvalEquals("test1 (a1;a2;a3)-test2 (a1;a2;a3)-test3 (a1;a2;a3)-test4 (a1;a2;a3)", 
>     "#foreach ($value in $list)$value (#foreach ($val in $list2)$val#if( $velocityHasNext );#end#end)#if( $velocityHasNext )-#end#end");             
> Velocity 1.6.1 (or current head) fails because the "hasNext" flag status of the outer foreach loop gets overwritten by the nested foreach loop. To fix this we need to save the status of the hasNext flag in Foreach directive just like we save the value of the counter.
> This bug is related to VELOCITY-657 but is a separate bug. 

-- 
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