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!

Auto scroll to selected item in af:listview after PPR event

User501417-OracleOct 23 2017 — edited Oct 24 2017

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

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2017
Added on Oct 23 2017
6 comments
378 views