Cameron Ross wrote:
Hello,

I'd like to split a page up into two regions. The region on the right is to hold a tree2 component and the region on the left is to hold some plain old content. The solution should allow for mouse-drag resizing and I would also like the tree2 region to contain both horizontal and vertical scroll bars when required (i.e. a vertical scroll for a long list and a horizontal scroll bar for long tree node names). Also, I would like to do this using facelets. Is Tiles the best option here?

Suggestions are greatly appreciated.

I think Tiles is irrelevant here. It certainly does not provide any of the functionality you describe.

Achieving this will probably take some hefty javascript. I believe that resizable panes like you describe can be implemented by using javascript to catch mouse events and to update the width property of DOM nodes within the browser. That's standard DHTML, not JSF.

Having scrollbars around one component (when needed) sounds to me like you need an IFrame enclosing the tree. That's standard HTML not JSF.

I guess a "split pane" component that emits the necessary javascript to do this would be a nice addition to the tomahawk library, but no such thing currently exists, so you'll need to write it yourself or pay someone to do it.

Regards,

Simon

Reply via email to