在JAV端写了这么一个方法:
public Container<Test> findTest(Test test,int firstResult ,int maxResults)throws DataAccessException{
if(log.isDebugEnabled()){
log.debug("start findTest method");
}
Container<Test> container = new Container<Test>();
List<Test> list = testDao.list(test, firstResult , maxResults);
container.setResults(list);
container.setTotalRows(testDao.count(test));
//container.getResults()
if(log.isDebugEnabled()){
log.debug("end findTest method");
}
return container;
}
写Flex端写了这么一个方法获取数据JAV端这个方法返回的数据。未能成功获得,不知道FLEX端这样写却不行?
protected function list_resultHandler(event:ResultEvent):void
{
pagingBar.orgData = ArrayCollection(event.result.list);
pagingBar.totalRecord = event.result.count;
pagingBar.dataBind(true);
}你用的是HTTPService么?呵呵,我来晚了