Container

With the container components, content can be shown in different ways.

Content Box

<tc:box label="Box">Content</tc:box>

Box

Content

Panel

<tc:panel>Content</tc:panel>
Content

Separator

<p>Content</p>
<tc:separator/>
<p>Content</p>

Content


Content

Section

<tc:section label="Section">Content</tc:section>

Section

Content

Header / Footer

<tc:header>Header-Content</tc:header>
<p>Content between header and footer.</p>
<tc:footer>Footer-Content</tc:footer>
Header-Content

Content between header and footer.

Footer-Content
<?xml version="1.0" encoding="UTF-8"?> <!-- * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. --> <ui:composition template="/main.xhtml" xmlns="http://www.w3.org/1999/xhtml" xmlns:tc="http://myfaces.apache.org/tobago/component" xmlns:ui="http://java.sun.com/jsf/facelets"> <ui:param name="title" value="#{demoBundle.container}"/> <p>With the container components, content can be shown in different ways.</p> <tc:section label="#{demoBundle.box}"> <pre><code class="language-markup">&lt;tc:box label="Box">Content&lt;/tc:box></code></pre> <tc:box label="Box">Content</tc:box> </tc:section> <tc:section label="#{demoBundle.panel}"> <pre><code class="language-markup">&lt;tc:panel>Content&lt;/tc:panel></code></pre> <tc:panel>Content</tc:panel> </tc:section> <tc:section label="#{demoBundle.separator}"> <pre><code class="language-markup">&lt;p>Content&lt;/p> &lt;tc:separator/> &lt;p>Content&lt;/p></code></pre> <p>Content</p> <tc:separator/> <p>Content</p> </tc:section> <tc:section label="#{demoBundle.section}"> <pre><code class="language-markup">&lt;tc:section label="Section">Content&lt;/tc:section></code></pre> <tc:section label="Section">Content</tc:section> </tc:section> <tc:section label="#{demoBundle.header_footer}"> <pre><code class="language-markup">&lt;tc:header>Header-Content&lt;/tc:header> &lt;p>Content between header and footer.&lt;/p> &lt;tc:footer>Footer-Content&lt;/tc:footer></code></pre> <tc:header>Header-Content</tc:header> <p>Content between header and footer.</p> <tc:footer>Footer-Content</tc:footer> </tc:section> </ui:composition>