Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-115

[PATCH] Add a var attribute to the Break tag.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0-beta-4
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      It would be nice if the Break tag could inform if it broke its parent forEach tag.

      Here is an example that could be applied to a Maven plugin (http://jira.codehaus.org/browse/MPANNOUNCEMENT-14):

      <j:forEach var="version" items="${pom.versions}">
      <j:break var="foundTag" test="${version.id==versionVariable}"/>
      </j:forEach>
      <j:if test="${!foundTag}">
      // core here
      </j:if>

      I will provide a patch later, once I'm back home.

      Felipe

        Attachments

          Activity

            People

            • Assignee:
              diongillard dion gillard
              Reporter:
              felipeal Felipe Leme
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: