[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to