Well, you can try not to use liveScroll, because then you do not know the end of the data list. Try it, and maybe it suits your needs. This will scroll to the bottom of your data table with a delay.
<h:form prependId="false">
<p:dataTable id="dataTable" var="c" value="#{MessagingUserBean.inboxDetails1}" scrollHeight="517" liveScroll="true" emptyMessage="No Message Found" scrollWidth="815" >
//Your dataTable stuff
</p:dataTable>
</h:form>
<script>
var s = jQuery('#dataTable .ui-datatable-scrollable-body').prop('scrollHeight');
var o = jQuery('#dataTable .ui-datatable-scrollable-body').prop('offsetHeight');
var t = Math.ceil(s/o);
$('#dataTable .ui-datatable-scrollable-body').animate({scrollTop:s-0}, t*1000);
</script>
source
share