I've a read only view object that is built over two tables ("master detail tables").
this tree table is used to draw the master detail tables on a hierarchy view.
when I check the master node all the child nodes have to be checked and when I save I insert rows in another table in the data base.
when I make the master node autosubmit=true to check the child records it refreshes the tree and it removes the checks and retrieve the data from the data base.
so it clears my selection.
Anyway, to fetch all data at once, see the contentDelivery property on af:treeTable