List list = (List)request.getAttribute("list") only returns a max of 100 items
I have adapted the List component to count a number of pages from a list of recipe pagescreated by authors under /content/en/all-recipes
I start to count how many pages sit under /content/en/all-recipes as follows
%><cq:include script="init.jsp"/><%
Integer pageCounter = 0;
List list = (List)request.getAttribute("list");
if (!list.isEmpty()) {
int z = list.size();
list.size() returned a correct count of the number of recipes I had until I reached a number of recipes > 100. Now I have 170 recipe pages and count is still 100.
I tested in CRXDE lite how many pages there is using
SELECT * FROM [cq:Page] AS s WHERE ISDESCENDANTNODE(s,'/content/en/all-recipes')
Regards
Clive Stewart