<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- We need a doctype to allow us to use special characters like &nbsp;
We use a "strict" DTD to make IE follow the alignment rules. -->
<html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_4.xsd">
<body class="container">
<h3>Component Around Content</h3>
A component can have content between its start and end tags. The component outputs that content when it reaches a
<em>t:body</em> directive in its template.
<div class="eg">
<t:examples.component.bolditalicdisplaywithcontent value="message">
I am content surrounded by component <code>examples.component.bolditalicdisplaywithcontent</code>.<br/>
I was rendered when it reached a <code>t:body</code> directive in its template.<br/>
</t:examples.component.bolditalicdisplaywithcontent>
</div>
<t:pagelink t:page="examples/component/ComponentAroundContent" href="#">Refresh</t:pagelink><br/><br/>
References:
<a href="http://tapestry.apache.org/component-templates.html#ComponentTemplates-The%3Ct%3Abody%3EElement">t:body</a>.<br/><br/>
<t:pagelink page="Index">Home</t:pagelink><br/><br/>
<t:tabgroup>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/component/ComponentAroundContent.tml"/>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/pages/examples/component/ComponentAroundContent.java"/>
<t:sourcecodetab src="/web/src/main/resources/META-INF/assets/css/examples/plain.css"/>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/components/examples/component/BoldItalicDisplayWithContent.tml"/>
<t:sourcecodetab src="/web/src/main/java/jumpstart/web/components/examples/component/BoldItalicDisplayWithContent.java"/>
<t:sourcecodetab src="/web/src/main/resources/META-INF/assets/css/examples/bolditalicdisplay.css"/>
</t:tabgroup>
</body>
</html>