I'm using Primefaces mobile and I've created a dataList to display my database information. But I need to make it so that it has liveScroll, meaning, I can keep scrolling down and once I hit a certain number of records displayed (I've set it to 3 here) a button should appear saying "More Results" that would load more results. I know it's possible, I've seen it here:http://forum.primefaces.org/viewtopic.php?f=8&t=30479&p=98383#p98383
But for me it's not working, it just displays the full dataList with all the database records instead of just showing 3 at a time like I set it to.
<p:dataList id="dataList" value="#{search.dbRecord}" var="record" paginator="true" rows="3" >
<f:attribute name="paginatorText" value="More Results" />
<p:column>
<h:outputLink value="#">
<h2>#{record.name}</h2>
<h2>#{record.number}</h2>
</h:outputLink>
</p:column>
</p:dataList>
What am I doing wrong?
EDIT: Turns out this functionality is still not working in Primefaces 5.0 so I used Primefaces mobile 0.9.4
which version of PrimeFaces are you using ?
Edit :
PrimeFaces Mobile 0.9.4
Download with Maven :
Group id of the dependency is org.primefaces and artifact id is primefaces-mobile:
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces-mobile</artifactId>
<version>0.9.4</version>
</dependency>
In addition to the configuration above you also need to add PrimeFaces maven repository to the repository list so that maven can download it :
<repository>
<id>prime-repo</id>
<name>Prime Repo</name>
<url>http://repository.primefaces.org</url>
</repository>