在primefaces中的数据表中的行之间缺少行分离(动态),只需查看此图像(我无法在此处上传图像) http://i.stack.imgur.com/tvzZ3.png
<h:form>
<p:dataTable id="messageTable" var="mout" value="#{messageOutController.items}" rows="25" scrollable="true" height="150">
<p:column style="width:150px"><f:facet name="header">ID</f:facet><h:outputText value="#{mout.messageId}"/> </p:column>
<p:column style="width:150px" ><f:facet name="header">Recepient</f:facet> <h:outputText value="#{mout.smsRecipient}"/> </p:column>
<p:column style="width:50px" ><f:facet name="header">Language</f:facet><h:outputText value="#{mout.smsLanguage}"/> </p:column>
<p:column style="width:150px" ><f:facet name="header">Message</f:facet><h:outputText value="#{mout.smsMessage}"/> </p:column>
<p:column style="width:50px" ><f:facet name="header">Status</f:facet><h:outputText value="#{mout.smsStatus}"/> </p:column>
<p:column style="width:100px"><f:facet name="header">Application ID</f:facet> <h:outputText value="#{mout.applicationId}"/> </p:column>
<p:column style="width:150px"><f:facet name="header">Created</f:facet> <h:outputText value="#{mout.creationTime}"><f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" /></h:outputText> </p:column>
<p:column style="width:100px"> <p:commandLink ajax="false" value="View" action="#{messageOutController.prepareView()}"/> </p:column>
</p:dataTable>