You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ia...@thomsonreuters.com on 2010/08/26 18:27:02 UTC

Bug in LoopTool?

Hi,

When using LoopTool, it doesn't appear to sync correctly, starting "one
in" on the second list, and also missing the last value from the second
list.

Running the example from the documentation, without the stop():

  #set( $list = [1..7] )
  #set( $others = [3..10] )
  #foreach( $item in $loop.watch($list).sync($others, 'other') )
    $item -> $loop.other
  #end

produces:
    1 -> 4
    2 -> 5
    3 -> 6
    4 -> 7
    5 -> 8
    6 -> 9
    7 -> $loop.other

Using Velocity Tools 2.0, Velocity Engine 1.6.4

Regards

Iain McDiarmid Miller
Senior Developer


Thomson Reuters 

iain.miller@thomsonreuters.com
thomsonreuters.com



This e-mail is for the sole use of the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. Any distribution, use or printing by anyone else is prohibited. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments from your system.
--------------------------------------------------------------------------
Thomson Reuters (Legal) Limited
Registered Office 100 Avenue Road, London NW3 3PF
Registered in England & Wales: Company No. 1679046

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


Re: Bug in LoopTool?

Posted by Nathan Bubna <nb...@gmail.com>.
That certainly sounds like a bug.  Would you open a JIRA issue?

https://issues.apache.org/jira/browse/VELTOOLS

i'm planning/hoping to spend a day or two next week fixing bugs and
maybe putting out an Engine 1.7 final.  This looks like something that
i should do that day. :)

On Thu, Aug 26, 2010 at 9:27 AM,  <ia...@thomsonreuters.com> wrote:
> Hi,
>
> When using LoopTool, it doesn't appear to sync correctly, starting "one
> in" on the second list, and also missing the last value from the second
> list.
>
> Running the example from the documentation, without the stop():
>
>  #set( $list = [1..7] )
>  #set( $others = [3..10] )
>  #foreach( $item in $loop.watch($list).sync($others, 'other') )
>    $item -> $loop.other
>  #end
>
> produces:
>    1 -> 4
>    2 -> 5
>    3 -> 6
>    4 -> 7
>    5 -> 8
>    6 -> 9
>    7 -> $loop.other
>
> Using Velocity Tools 2.0, Velocity Engine 1.6.4
>
> Regards
>
> Iain McDiarmid Miller
> Senior Developer
>
>
> Thomson Reuters
>
> iain.miller@thomsonreuters.com
> thomsonreuters.com
>
>
>
> This e-mail is for the sole use of the intended recipient and contains information that may be privileged, confidential or copyrighted under applicable law. Any distribution, use or printing by anyone else is prohibited. If you are not an intended recipient, please notify the sender by return e-mail and delete this e-mail and any attachments from your system.
> --------------------------------------------------------------------------
> Thomson Reuters (Legal) Limited
> Registered Office 100 Avenue Road, London NW3 3PF
> Registered in England & Wales: Company No. 1679046
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
> For additional commands, e-mail: dev-help@velocity.apache.org
>
>

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