public PageIterator getAllUsers(int start, int count) throws Exception {
String GET_ALL_ITEMS_ALLCOUNT = "select count(1) from fd";
String GET_ALL_ITEMS = "select fdid from fd order by fdid desc";
List queryParams=new ArrayList();
return pageIteratorSolverOfUser.getPageIterator(GET_ALL_ITEMS_ALLCOUNT,
GET_ALL_ITEMS, queryParams, start, count);
}
我们因为业务需要,在xxListAction中加了参数调用。
public PageIterator getAllUsers(String query,int start, int count) throws Exception
如果有参数正常返回数值时,一切正常,但是如果返回无值的话。页面出错。
我们查了查JF使用文档。里面的方法是使用EvenModel em, em.setError来处理. 然后在页面
谢谢各位回复. 祝虎年大顺.
[该贴被webheat于2010-02-28 17:26修改过]