I am trying this example in PrimeFaces. I understand only the first few lines of the code.
<p:dataTable var="car" value="#{tableBean.carsSmall}"
emptyMessage="No cars found with given criteria">
<f:facet name="header">
<p:outputPanel>
<h:outputText value="Search all fields:" />
<p:inputText id="globalFilter" onkeyup="carsTable.filter()" style="width:150px" />
</p:outputPanel>
</f:facet>
It could display a search box here. The reaming lines of code would be to add the column and populate the columns with data. I don't understand what
<p:column filterBy="#{car.model}"
headerText="Model" footerText="contains"
filterMatchMode="contains">
<h:outputText value="#{car.model}" />
</p:column>`
What is #{car.model}
? it doesn't specify anything call model
in the java class. How do I alter my java class to make a column display?