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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-4
    • core / taglib.core
    • 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

        1. JELLY-115.patch
          7 kB
          Felipe Leme

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: