jsf2.1+primefaces3.1.1 在使用<p:datatable>时 如何实现动态分页:即,不要一次把数据全部查出来

还有 primefaces里的LazyDataModel 为什么不让继承? 提示:Multiple markers at this line
- The type DataModel is not generic; it cannot be parameterized with arguments <T>
- The serializable class LazyCarDataModel does not declare a static final serialVersionUID field of
type long

第1个回答  2012-12-08
<p:datatable>分页是基于查询出结果集来分的,需要分页查询还是用<c:forEach>加自己写分页查询代码方便些
第2个回答  2012-05-18
我也遇到了这个问题,网上说把编译环境设置成6.0就行,但我的不起作用,最后是下载了最新的myeclipse10.0,然后就没这个错误了.追问

朋友 这个要更改 primefaces -3.x.jar的lazyDataModel.java 的源码才行

追答

能解决问题就行。。。。我的没修改源码。。

相似回答