Tapestry
  1. Tapestry
  2. TAPESTRY-1469

Templates should support an outer t:container element for when a template consists of non-tree structured content

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0.6
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      In some occasions, a component template contains non-tree structured content.

      It would be nice if the template could support a <t:container> element that wrapped around the true content, but was not part of it. I.e.

      <t:container ...>

      This is just a block of text.

      ...

      </t:container>

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        Ok, I'm just stupid.

        Show
        Howard M. Lewis Ship added a comment - Ok, I'm just stupid.
        Hide
        Howard M. Lewis Ship added a comment -

        Removed the fix version so it will no longer show up in my "bugs to move to tap5" report.

        Show
        Howard M. Lewis Ship added a comment - Removed the fix version so it will no longer show up in my "bugs to move to tap5" report.
        Hide
        Cyrille added a comment - - edited

        If I well understand, it could be use too in that case :

        The component HTML :

        <html>
        <head><title>TheComponent</title></head>
        <body>
        <t:container>
        <p>Hello from component !</p>
        </t:container>
        </body>
        </html>

        The page HTML :

        <html>
        <head><title>ThePage</title></head>
        <body>
        <span t:type="TheComponent"> Dummy text </span>
        </body>
        </html>

        The result (generated page) :

        <html>
        <head><title>ThePage</title></head>
        <body>
        <p>Hello from component !</p>
        </body>
        </html>

        Show
        Cyrille added a comment - - edited If I well understand, it could be use too in that case : The component HTML : <html> <head><title>TheComponent</title></head> <body> <t:container> <p>Hello from component !</p> </t:container> </body> </html> The page HTML : <html> <head><title>ThePage</title></head> <body> <span t:type="TheComponent"> Dummy text </span> </body> </html> The result (generated page) : <html> <head><title>ThePage</title></head> <body> <p>Hello from component !</p> </body> </html>
        Hide
        Kalin Krustev added a comment -

        Great !

        I was trying to make this with a custom component, but this ended with TAPESTRY-1555

        Show
        Kalin Krustev added a comment - Great ! I was trying to make this with a custom component, but this ended with TAPESTRY-1555
        Hide
        Howard M. Lewis Ship added a comment -

        This would even be useful at the page level, for pages that are no structured markup ... which could include pages that are really CSS style sheets or very dynamically generated JavaScript libraries.

        Show
        Howard M. Lewis Ship added a comment - This would even be useful at the page level, for pages that are no structured markup ... which could include pages that are really CSS style sheets or very dynamically generated JavaScript libraries.

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development