Upgrade Velocity from 1.4.x to 1.6.x

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 5.1
    • Component/s: None

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      I would like to take advantage of some features in the current Velocity release, specifically the 'hasNext' looping test enabling for example, the conditional addition of a trailing ', ' when building a list of javascript values.

      This would allow:

      #foreach( $customer in $customerList )
          $customer.Name#if( $velocityHasNext ),#end
      #end
      

      But would require a velocity.properties addition:

      directive.foreach.iterator.name = velocityHasNext
      

      Enabling this would reduce the need for 'rendering' code to be done within Java classes when it doesn't need to be.

            Assignee:
            Unassigned
            Reporter:
            Deleted Account (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: