Tapestry 5
  1. Tapestry 5
  2. TAP5-496

Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.18
    • Fix Version/s: 5.1.0.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      I use a lot of dummy texts in my template to see what the page will actually look like when rendered. To filter out these fragments I created a "Dummy" component whose setupRender method always returns "false".

      I don't know if this is efficient but it would be nice to have something like this already in T5's component library.

      More efficient would be a special marker XML attribute that the template parser recognizes. Maybe something like a t:test attribute which is works like <t:if test="...">...</t:if>. If the contained expression evaluations to false or null the marked element is filtered.

      <ul>
      <li t:test="show.item">conditional item</li>
      <li t:test="literal:false">dummy item</li>
      </ul>

        Activity

        Howard M. Lewis Ship made changes -
        Fix Version/s 5.1.0.0 [ 12313428 ]
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Howard M. Lewis Ship made changes -
        Status Reopened [ 4 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Summary Dummy component which renders nothing Change If and Unless to render thier template element if provided (i.e., when using t:type) as well as informal parameters
        Priority Major [ 3 ] Minor [ 4 ]
        Folke Behrens made changes -
        Status Closed [ 6 ] Reopened [ 4 ]
        Resolution Invalid [ 6 ]
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Invalid [ 6 ]
        Assignee Howard M. Lewis Ship [ hlship ]
        Folke Behrens created issue -

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Folke Behrens
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development