<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://xmlns.jcp.org/jsf/core">
<h:head>
<link rel="stylesheet" href="#{request.contextPath}/themes/redmond/skin.css" />
</h:head>
<h:body>
<h:form>
<p:panel header="Veri Tablosu" style="width:800px">
<p:dataTable
value="#{myDataTableBean.dataList}" var="data"
paginator="true" rows="15" rowsPerPageTemplate="5,10,15"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
>
<p:column headerText="Veri No" sortBy="#{data.dataId}">
<h:outputText value="#{data.dataId}" />
</p:column>
<p:column headerText="Veri Adı" sortBy="#{data.dataId}">
<h:outputText value="#{data.dataName}" />
</p:column>
<p:column headerText="Veri Değeri" sortBy="#{data.dataId}">
<h:outputText value="#{data.dataValue}" >
<f:convertNumber maxFractionDigits="2" />
</h:outputText>
</p:column>
</p:dataTable>
</p:panel>
</h:form>
</h:body>
</html>
Dosyayı İndir