Without using REST, how would you load additional data (not a table-like data set), like a scrolling calendar, with JSF 2.2?
The lazy loading should be triggered when the user reaches the bottom of the html document. That is fairly simply to do with jQuery:
<script>
$(window).scroll(function() {
if($(window).scrollTop() == $(document).height() - $(window).height()) {
// retrieve server data: from what service? JSF or REST?
}
});
</script>
But how do you retrieve additional days with JSF 2.2 (or Richfaces)? Let's say... 28 days more for the calendar. Reading other threads on this topic, JSF is not recommended. So, am I correct in saying, that a) one should pair JSF to create the initial page and b) use REST for the additional data loading as a solid approach and without abusing JSF for what it is not.
If I imply wrongly, what is the best approach when working on a JavaEE (Wildfly, 8.1) application server with JSF?
Thanks