Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

How to get scroll bar top and bottom posistions of a list box ?

843844May 11 2009 — edited May 11 2009
Hi All,

In general cases, in a drop down list box if we type something it finds the corresponding match. The first match will be always bottom of the list box. But I want to make the matched element as top of the list box rather than bottom of it. As I understand the problem, we can do this by setting scroll top position of list box.

Please somebody tell how to get scroll bar top and bottom values of a list box. (This could be happen before onSelect or onChange events, because once these events are fired the scroll position is setting to 0.) [Note: I am using <h:selectOneMenu> component from jsf/html]


Thanks in advance !!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2009
Added on May 11 2009
3 comments
133 views