You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Cyrille (JIRA)" <de...@tapestry.apache.org> on 2007/07/16 08:21:04 UTC

[jira] Issue Comment Edited: (TAPESTRY-1469) Templates should support an outer t:container element for when a template consists of non-tree structured content

    [ https://issues.apache.org/jira/browse/TAPESTRY-1469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12508885 ] 

Cyrille edited comment on TAPESTRY-1469 at 7/15/07 11:20 PM:
-------------------------------------------------------------

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>



 was:
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"> Ho ! </span>
</body>
</html>

The result (generated page) :

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


> Templates should support an outer t:container element for when a template consists of non-tree structured content
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1469
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1469
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.0
>            Reporter: Howard M. Lewis Ship
>
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org