Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1166

If and Else components ignore element parameter when renderTag is false

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.1
    • Component/s: tapestry-core
    • Labels:
      None
    • Environment:
      N/A

      Description

      If an element is specified, it should be rendered regardless of the value of renderTag. This is preferable for the sake of backwards compatibility and, arguably, is the correct logic as long as the element and renderTag parameters co-exist.

      This issue does not affect the For component, which always renders a tag if the element parameter is specified.

        Activity

        Hide
        rholmes Ryan Holmes added a comment -

        Simple patch to make If and Else always render a tag when element is specified.

        Show
        rholmes Ryan Holmes added a comment - Simple patch to make If and Else always render a tag when element is specified.
        Hide
        jkuhnert Jesse Kuhnert added a comment -

        Applied, thanks.

        Show
        jkuhnert Jesse Kuhnert added a comment - Applied, thanks.

          People

          • Assignee:
            jkuhnert Jesse Kuhnert
            Reporter:
            rholmes Ryan Holmes
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development