<!--
  ~ ICESOFT COMMERCIAL SOURCE CODE LICENSE V 1.1
  ~
  ~ The contents of this file are subject to the ICEsoft Commercial Source
  ~ Code License Agreement V1.1 (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.icesoft.com/license/commercial-source-v1.1.html
  ~
  ~ Software distributed under the License is distributed on an "AS IS"
  ~ basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  ~ License for the specific language governing rights and limitations under
  ~ the License.
  ~
  ~ Copyright 2009-2015 ICEsoft Technologies Canada, Corp. All Rights Reserved.
  -->

<h:form id="frm"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ice="http://www.icesoft.com/icefaces/component"
        xmlns:ui="http://java.sun.com/jsf/facelets">

    <ice:panelTabSet id="tabs" styleClass="componentTabSetContainer"
                     tabChangeListener="#{applicationController.processTabChange}"
                     selectedIndex="#{applicationModel.selectedTabIndex}">

        <!--
          Controls to show/hide the table columns
        -->
        <ice:panelTab
                label="#{msgs[applicationModel.currentNode.contentDescriptor.title]}">
            <ui:insert name="example">
                Demonstration content
            </ui:insert>
        </ice:panelTab>

        <!--
          Template for component source code.  This servlet loads
          the component example jsp include as an xml stream
        -->
        <ice:panelTab label="Docs">
            <ui:insert name="documentation">
                Description content
            </ui:insert>
        </ice:panelTab>

        <ice:panelTab label="Source" rendered="${build['priv.demo']}">
            <ui:insert name="source">
                Description content
            </ui:insert>
        </ice:panelTab>


    </ice:panelTabSet>

    <ice:panelGroup styleClass="noteBox">
        ICEfaces Enterprise Components are included in
        <a href="http://www.icesoft.org/java/products/ICEfaces-EE/overview.jsf"
           target="_blank">
            ICEfaces EE</a>. Learn more about the ICEfaces
        <a href="http://www.icesoft.org/java/products/ICEfaces-EE/ee-components.jsf"
           target="_blank">
            Enterprise Components</a>.
    </ice:panelGroup>

</h:form>