<html>
   <%@ taglib uri="http://java.sun.com/jsf/core"  prefix="f" %>
   <%@ taglib uri="http://java.sun.com/jsf/html"  prefix="h" %>
   <f:view>
      <head>
         <link href="styles.css" rel="stylesheet" type="text/css"/>
         <title>
            <h:outputText value="#{msgs.windowTitle}"/>
         </title>
      </head>
      <body>
         <h:form>
            <h:dataTable value="#{tableData.names}" 
               var="name"
               captionStyle="font-size: 0.95em; font-style:italic"
					style="width: 250px;">

               <f:facet name="caption">
                   <h:outputText value="Tablica imion i nazwisk:"/>
               </f:facet>

               <h:column headerClass="columnHeader"
                  footerClass="columnFooter">
                  <f:facet name="header">
                     <h:outputText value="#{msgs.lastnameColumn}"/> 
                  </f:facet>

                  <h:outputText value="#{name.last}"/>

                  <f:facet name="footer">
                     <h:outputText value="#{msgs.alphanumeric}"/> 
                  </f:facet>
               </h:column>

               <h:column headerClass="columnHeader"
                  footerClass="columnFooter">
                  <f:facet name="header">
                     <h:outputText value="#{msgs.firstnameColumn}"/> 
                  </f:facet>

                  <h:outputText value="#{name.first}"/>

                  <f:facet name="footer">
                     <h:outputText value="#{msgs.alphanumeric}"/> 
                  </f:facet>
               </h:column>
            </h:dataTable>
         </h:form>
      </body>
   </f:view>
</html>
