-
1. Re: listShuttle with tree on left side
nbelaevski Apr 6, 2009 4:28 AM (in response to jeremygood)Hi Jeremy,
That's not possible out of the box. -
2. Re: listShuttle with tree on left side
jeremygood Apr 6, 2009 11:01 AM (in response to jeremygood)Yes. I spent all day yesterday playing around with treeAdaptors and pickLists. It took me a while to figure out that a pickList cannot take a list of SelectItemGroups, like a selectOneMenu. At least, I think that's the case. I tried it, but the results were pretty odd.
Soi, I am now attempting to build a tree panel with drag-n-drop capabilities into a list panel on the right. It's coming along okay, using the richfaces live demo code as a starting point.
However, this is a very limited starting point. Can someone point me to some other samples or documentation that would help in this effort? For example, in the samples source, SimpleTreeDndBean includes code that calls getTreeModel(), but that call returns null in my case, and I cannot find any information about what the treeModel is.
Thanks,
Jeremy -
3. listShuttle with tree on left side
lightlinger May 12, 2011 2:03 AM (in response to jeremygood)I'm late but I have found a more or less simple way to do it.
rich:tree and rich:listShuttle in h:panelGrid
I put all available datas (in your case the families) in the source list of the list shuttle
Hide the source list (sourceListWidth=0, .rich-shuttle-source-items { border:0px; })
Use the data in the list to build up the tree in your Bean
Implement a selection listener for the tree to synchronize the selection of the tree with the hidden list
Looks nice and works well.
Greeting from Luxembourg, Tim