我现在在List页面使用了simplePagination
组件,但是这个页面的sql语句我是在controller中使用DL写的,当在xml中的标签添加autoLoad=true
会出现A component 'SimplePagination' is not attached to a view
的错误。
所以请问一下,应该在哪里写什么内容才能自动加载当前表格的总条数?
我现在在List页面使用了simplePagination
组件,但是这个页面的sql语句我是在controller中使用DL写的,当在xml中的标签添加autoLoad=true
会出现A component 'SimplePagination' is not attached to a view
的错误。
所以请问一下,应该在哪里写什么内容才能自动加载当前表格的总条数?
对了,补充一下,我是创建了一个EmptyView,在里面添加了几个Fragment,我上述内容都是在Fragment中,并不是ListView中(记错了)
好 我试试
是这样的,我在DC那里的SQL语句注释掉了
分页是这样写的
controller中写了ready方法
但是又会出现both query and delegate are null
这个错就是说你的 DL 既没有 XML 中的 query
,也没有 Java 中的 delegate,不知道如何加载数据。