I have datatables dynamically populated and each contains dynamically populated collapsibleSubTables. I need to maintain the state (expand/collapse) on re-render. I am currently accomplishing this w/ onRowClick calling a jsFunction that updates a boolean Map of expand states with the key being the id of the item in my generated datatable row. The problem is that there is a delay that I would like to eliminate that I attribute to a required ajax call and re-render each time a row is clicked. is there another way to do this?
are you perhaps using ui:repeat? There is an issue in Mojarra that makes our components lose their state if they're inside ui:repeat.