Skip to content

Instantly share code, notes, and snippets.

@necronet
Created January 17, 2013 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save necronet/4556442 to your computer and use it in GitHub Desktop.
Save necronet/4556442 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<ui:composition template="/WEB-INF/templates/layout.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jsp/jstl/core">
<ui:define name="content">
<p:tabView effect="puff" effectDuration="slow" id="tabView">
<!-- First Tab -->
<p:tab id="tab1" title="Departments / Courses">
<h:form>
<p:treeTable value="#{treetablebean.root}" var="treetable" style="width: 650px;">
<p:column style="width: 100px;">
<f:facet name="header">
Study Center
</f:facet>
<h:outputText value="#{treetable.studentName}" />
</p:column>
<p:column style="text-align: center; width: 5px;">
<f:facet name="header">
Number Of Courses
</f:facet>
<h:outputText style="font-size: 20px !important; color: #7AC943 !important;" value="#{treetable.budget}" />
</p:column>
<p:column style="text-align: center; width: 5px;">
<f:facet name="header">
Students
</f:facet>
<h:outputText style="font-size: 20px !important; color: #F79820 !important;" value="#{treetable.attendance}" />
</p:column>
</p:treeTable>
</h:form>
</p:tab>
<!-- Second Tab -->
<p:tab id="tab2" title="Statistics">
</p:tab>
</p:tabView>
</ui:define>
</ui:composition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment