我在p:dataTable(primefaces 3.4.2)中使用了scrollable。但是当空数据时,它会在下面的表格中显示2个滚动条。我该如何解决?
<p:dataTable var="item" value="#{p_bean.lstDecDetail}" id="lstDecDetail" editable="false"
paginatorTemplate="#{qlaBundle['dataTable.paginatorTemplate']}"
scrollable="true" scrollHeight="200" scrollWidth="1608" resizableColumns="true"
rowsPerPageTemplate="#{qlaBundle['dataTable.rowsPerPageTemplate']}"
currentPageReportTemplate="#{qlaBundle['dataTable.currentPageReportTemplate']}"
paginator="true" paginatorAlwaysVisible="true" paginatorPosition="top"
emptyMessage="#{qlaBundle['dataTable.emptyMessage']}" rowKey="#{item.rnum}"
rows="#{sessionScope['ss_pagesize']}" lazy="true">
你能看到一些照片:
https://lh4.googleusercontent.com/-bgqP_P4Ha_s/UtTruMkS7xI/AAAAAAAAArE/moGQEZd_5lM/w980-h289-no/Capture1.PNG
...</p:dataTable>
<p/>
<p:commandButton icon="#{qlaBundle['button.icons.add']}"
value="#{tdBundle['Tdkt_DecLevel1.button.labels.add']}"
action="#{p_bean['preLoadDialog']}" styleClass="qla-buttons"
update=":bodyForm:lstVoteObject,:bodyForm:insertDialog"
process="decNo,decYear,decDate,effectiveDate,decSigner,decExecutive,decRecipient,content,level0p,level1p,@this"/>
<p:button icon="#{qlaBundle['button.icons.delete']}" style="align:right"
value="#{qlaBundle['button.labels.delete']}" widgetVar="deleteButton"
onclick="deleteConfirmDialog.show();" href="#" styleClass="qla-buttons"
disabled="#{p_bean.delBtnDisabled}" id="btnDelete"/>