Hi,
I have a similar question to this forum question but did not see any reply:
Auto Scroll to the specific item after refresh the RichListView
There are a search field (inputText and button), and af:listview in my page. When the search button is clicked, it finds the item in listview and highlight it by setting current row with key value and then PPR refresh the listview in the commandToolbarButton (Search) actionListener:
Code snipplet:
....
DCIteratorBinding iter = (DCIteratorBinding)CommonUIUtil.getBindingObject(iterator);
iter.setCurrentRowWithKeyValue(rowKey.toString());
RequestContext.getCurrentInstance().addPartialTarget(funcionalAreaListView);
....
The highlight of the selected current row is happening, but if the item is further down, the scrolling of the listview does not automatically scroll down to show the highlighted row. We have to manually scroll down.
For af:table, there is an attribute "displayRow" and if set to "selected", it would enable auto scrolling. But there is no "displayRow" attribute in af:listview.
Any advice? Is this a known bug or some future ADF enhancement?
Thanks
-Mina