This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes jsf tree scrolling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "jsf tree scrolling" Watch "jsf tree scrolling" New topic

jsf tree scrolling

Chris Vee

Joined: Dec 23, 2008
Posts: 1
Hi there,

I am using a "com.sun.webui.jsf.component.Tree" component on one of my webpages. The component has "overflow: auto" set so that it starts scrolling down when it becomes too big for its specified size. Now I want it to scroll to a specific position when the page loads. To be more precise, I do a "tree.setSelected(nodeID)" before the page loads and I want the tree to be scrolled to the selected TreeNode.

I cannot determine how to do this, please help!!

Delfin Delfin

Joined: Dec 23, 2008
Posts: 1
You must wraper your own tree in
<ice:panelGroup scrollHeight="50px" scrollWidth="50px">
...tree component
Everything must working.
jQuery in Action, 2nd edition
subject: jsf tree scrolling
Similar Threads
Simple tree help
how to capture the action while clicking on the tree structure. (tomahawk tree component)
Adding Component on Runtime
Dynamic tree component
Scrolling JMenu