Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jsf tree scrolling

 
Chris Vee
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!!

Thanks!
 
Delfin Delfin
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You must wraper your own tree in
<ice:panelGroup scrollHeight="50px" scrollWidth="50px">
...tree component
</ice:panelGroup>.
Everything must working.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic