dataTable中的空数据时显示2滚动条(使用可滚动)?

时间:2014-01-14 08:00:37

标签: jsf-2 primefaces

我在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

https://lh6.googleusercontent.com/-AtaA6mYMjD0/UtTruMWOGnI/AAAAAAAAArA/dlpdQcTQOu4/w674-h373-no/Capture2.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"/>

0 个答案:

没有答案