<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" version="2.0">
    <jsp:directive.page language="java"
        contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" />
    <jsp:text>
        <![CDATA[ <?xml version="1.0" encoding="ISO-8859-1" ?> ]]>
    </jsp:text>
    <jsp:text>
        <![CDATA[ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ]]>
    </jsp:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="styl.css" type="text/css" rel="stylesheet"/>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Strona testowa komponentu tabeli</title>
</head>
<body>
<f:view>

		<h:dataTable  border="0" value="#{listOfNumbers}" headerClass="header"
		var="item" styleClass="table" rowClasses="table-odd-row, table-even-row" 
	
		footerClass="footer" captionClass="caption" cellspacing="5" cellpadding="5" >
		<f:facet name="caption">
					<h:outputText value="To jest caption tabeli"></h:outputText>
				</f:facet>
			<f:facet name="header">
					<h:outputText value="To jest header tabeli"></h:outputText>
				</f:facet>
			<h:column id="column1">
				<f:facet name="header">
					<h:outputText value="To jest header kolumny 1"></h:outputText>
				</f:facet>
				<f:facet name="footer">
					<h:outputText value="To jest footer  kolumny 1"></h:outputText>
				</f:facet>
				<h:outputText value="#{item},1"></h:outputText>
			</h:column>
			<h:column id="column2">
				<f:facet name="header">
					<h:outputText value="To jest header kolumny 2"></h:outputText>
				</f:facet>
				<f:facet name="footer">
					<h:outputText value="To jest footer  kolumny 2"></h:outputText>
				</f:facet>
				<h:outputText value="#{item},2"></h:outputText>
			</h:column>
			<f:facet name="footer">
					<h:outputText value="To jest footer  tabeli"></h:outputText>
		   </f:facet>
		</h:dataTable>
	</f:view>
</body>
</html>
</jsp:root>