What if I want to build the tree model all at once? I just need a tip/advice on how to do the fetching from the database and load it up into the TreeNodeBase object.
Andrew Robinson-5 wrote: > > Do you want to lazy load them or build the tree model all at once? > > On 7/17/07, kewldude <[EMAIL PROTECTED]> wrote: >> >> Hi guys, >> >> I just need your advice though this is not really about the tree2 >> component >> entirely. I just want to know how did you retrieve the data that >> represents >> all the folders and nodes for the tree2 component. I know most likely >> that >> data comes from a db that has a table that has a column mapping like >> this: >> ID >> NAME >> PARENT_ID >> >> Basically, I just need a guide or a tip on how to retrieve those values >> effectively and load it into the TreeNodeBase object according to the >> order >> (subfolders or nodes appearing in the right folder hierarchy)by which >> they >> should be rendered by the tree2 component.Calling those people who had >> used >> the tree2 component extensively, I hope you can share a piece of advice. >> Thanks. >> -- >> View this message in context: >> http://www.nabble.com/Getting-contents-for-Tree2-component-tf4095761.html#a11645970 >> Sent from the MyFaces - Users mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Getting-contents-for-Tree2-component-tf4095761.html#a11653341 Sent from the MyFaces - Users mailing list archive at Nabble.com.