我正在尝试设置一个服务器来作为分页服务的数据源。我已经将所有内容都设置好了,以至于我的汇编程序被调用并且返回值,但是我没有收到“分页”调用。
具体来说:
具体来说:
public Collection fill(List fillArgs, int begin, int rows)
始终使用 begin == -1
和 rows == -1
调用,而不是获取真实值进行分页。此外:
public boolean useFillPage(List fillParameters)
我的实现总是对所有参数返回true,这个方法从未被调用。看起来它从未被调用是因为JavaAdapter没有从Flex客户端接收到pageSize标头。
这是我的目标配置:
<destination id="invoiceListDataService">
<adapter ref="java-dao" />
<properties>
<scope>session</scope>
<source>com.williams.finance.invoice.dao.InvoiceReviewListAssembler</source>
<network>
<paging enabled="true" pageSize="100" />
</network>
<metadata>
<identity property="invoiceNumber"/>
</metadata>
</properties>
</destination>
我调用数据服务的 Flex 代码:
myDataService = new DataService("invoiceListDataService");
myDataService.autoSyncEnabled=false;
myDataService.fill(invoiceReviewListModel.invoiceList, params);
我有什么遗漏吗?有什么建议可以开始查找吗?