You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
818 B
32 lines
818 B
<?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://java.sun.com/jsf/html"
|
|
xmlns:p="http://primefaces.org/ui">
|
|
|
|
<h:head>
|
|
<title>PrimeFaces DataTable Example</title>
|
|
</h:head>
|
|
|
|
<h:body>
|
|
|
|
<p:dataTable var="car" value="#{carsView.cars}">
|
|
<p:column headerText="Id">
|
|
<h:outputText value="#{car.id}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="Year">
|
|
<h:outputText value="#{car.year}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="Brand">
|
|
<h:outputText value="#{car.brand}" />
|
|
</p:column>
|
|
|
|
<p:column headerText="Color">
|
|
<h:outputText value="#{car.color}" />
|
|
</p:column>
|
|
</p:dataTable>
|
|
|
|
</h:body>
|
|
</html>
|
|
|