blob: 9082de010124d063ae00631275ed414eb0fe16de [file] [log] [blame]
<?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://xmlns.jcp.org/jsf/facelets">
<p>With the container components, content can be shown in different ways.</p>
<tc:section label="Box">
<demo-highlight language="markup">&lt;tc:box label="Box">Content&lt;/tc:box></demo-highlight>
<tc:box label="Box">Content</tc:box>
</tc:section>
<tc:section label="Panel">
<demo-highlight language="markup">&lt;tc:panel>Content&lt;/tc:panel></demo-highlight>
<tc:panel>Content</tc:panel>
</tc:section>
<tc:section label="Separator">
<demo-highlight language="markup">&lt;p>Content&lt;/p>
&lt;tc:separator/>
&lt;p>Content&lt;/p></demo-highlight>
<p>Content</p>
<tc:separator/>
<p>Content</p>
</tc:section>
<tc:section label="Section">
<demo-highlight language="markup">&lt;tc:section label="Section">Content&lt;/tc:section></demo-highlight>
<tc:section label="Section">Content</tc:section>
</tc:section>
<tc:section label="Header and Footer">
<demo-highlight 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></demo-highlight>
<tc:header>Header-Content</tc:header>
<p>Content between header and footer.</p>
<tc:footer>Footer-Content</tc:footer>
</tc:section>
</ui:composition>