我用lazy="true"
上primefaces数据表,因为我的数据是大的。但是这一次我没有得到过滤列表。我想,这个问题是dataTable的值是org.primefaces.model.LazyDataModel
和filteredValue是java.util.List
。那么,我怎样才能得到我的数据表中的filteredValue?任何建议?如何在Primefaces惰性数据表上获得过滤值?
我的数据表声明:
<p:dataTable id="tblIzin"
var="izin"
value="#{izinBean.lazyModelIzin}"
lazy="true"
paginator="true"
rows="10"
paginatorTemplate="{FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
scrollable="true"
scrollWidth="79%"
scrollHeight="37%"
editable="true"
editMode="cell"
filteredValue="#{izinBean.filteredList}"
emptyMessage="Kayıt bulunamadı." >
在此先感谢。
为什么你需要的filteredValue?如果使用惰性加载,你做的过滤负载方法有你有过滤列表... – Kukeltje 2015-02-10 09:08:20
我会用filteredValue进行统计/图等,是的,我看到负载方法,但我没有得到filteredValue 。这就是问题所在。我怎么才能得到它 ? – serifsadi 2015-02-10 09:14:18