A table with no column headers or footers and a caption displayed using messages.properties | A table with styled column headers and column footers rendered using facets | A table with styled column headers, column footers, and a caption rendered using facets |
<h:outputFormat value="#{msgs.currentScore}">
<f:param value="#{quizBean.score}"/>
</h:outputFormat>
<h:outputText value="#{payment.card}">
<f:attribute name="separator" value="-" />
</h:outputText>
<h:dataTable> ... <h:column headerClass="columnHeader" footerClass="columnFooter"> <f:facet name="header"> <!-- header components go here --> </f:facet> <!-- column components go here --> <f:facet name="footer"> <!-- footer components go here --> </f:facet> </h:column> ... </h:dataTable>