Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[ADF mobile] Append items to a list without refreshing the entire list?

shinlAug 7 2013

I'm having trouble making a list view NOT jumping to the top of the list every time new items get appended.

We have a list view connected to a data control which, in turn, is backed by a Java bean. The bean fetches more data from server and appends those to the existing ones. (a "load more from server" machanism) Then we fire a ProviderChangeSupport.fireProviderRefresh() to refresh the binded list view. The problem is: this will refresh the entire list and the scroll position will be reset to the top. The user have to manually scroll far away down to see the newly appended data.

If we don't use fireProviderRefresh(), the alternatives (fireProviderChange() and fireProviderCreate()) seem to be dealing with single row additions. Fire these events in a loop to append new items sounds like a poor performance choice.

Is there a way to append new items to the list view while keeping the old items and scroll position intact?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2013
Added on Aug 7 2013
0 comments
168 views