blob: 609b5b1a0664dc68c2fd7f2c40bdb3ab40d232fb [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="/plain.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<tc:header fixed="#{headerFooterController.fixHeader}" rendered="#{headerFooterController.renderHeader}">
<tc:style customClass="bg-warning"/>
<p>This is the header.</p>
</tc:header>
<tc:box label="Content Box">
<tc:segmentLayout medium="3seg 3seg 3seg 3seg" small="6seg 6seg">
<tc:selectBooleanCheckbox value="#{headerFooterController.renderHeader}" label="Render header">
<tc:event/>
</tc:selectBooleanCheckbox>
<tc:selectBooleanCheckbox value="#{headerFooterController.fixHeader}" label="Fix header">
<tc:event/>
</tc:selectBooleanCheckbox>
<tc:selectBooleanCheckbox value="#{headerFooterController.renderFooter}" label="Render footer">
<tc:event/>
</tc:selectBooleanCheckbox>
<tc:selectBooleanCheckbox value="#{headerFooterController.fixFooter}" label="Fix footer">
<tc:event/>
</tc:selectBooleanCheckbox>
</tc:segmentLayout>
<p>Content between header and footer #1.</p>
<p>Content between header and footer #2.</p>
<p>Content between header and footer #3.</p>
<p>Content between header and footer #4.</p>
<p>Content between header and footer #5.</p>
<p>Content between header and footer #6.</p>
<p>Content between header and footer #7.</p>
<p>Content between header and footer #8.</p>
<p>Content between header and footer #9.</p>
<p>Content between header and footer #10.</p>
</tc:box>
<tc:footer fixed="#{headerFooterController.fixFooter}" rendered="#{headerFooterController.renderFooter}">
<tc:style customClass="bg-info"/>
<p>This is the footer.</p>
</tc:footer>
</ui:composition>