| <?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"><tc:box label="Box">Content</tc:box></demo-highlight> |
| <tc:box label="Box">Content</tc:box> |
| </tc:section> |
| |
| <tc:section label="Panel"> |
| <demo-highlight language="markup"><tc:panel>Content</tc:panel></demo-highlight> |
| <tc:panel>Content</tc:panel> |
| </tc:section> |
| |
| <tc:section label="Separator"> |
| <demo-highlight language="markup"><p>Content</p> |
| <tc:separator/> |
| <p>Content</p></demo-highlight> |
| <p>Content</p> |
| <tc:separator/> |
| <p>Content</p> |
| </tc:section> |
| |
| <tc:section label="Section"> |
| <demo-highlight language="markup"><tc:section label="Section">Content</tc:section></demo-highlight> |
| <tc:section label="Section">Content</tc:section> |
| </tc:section> |
| |
| <tc:section label="Header and Footer"> |
| <demo-highlight language="markup"><tc:header>Header-Content</tc:header> |
| <p>Content between header and footer.</p> |
| <tc:footer>Footer-Content</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> |