Is there any way to know how many rows are there in table (rich:extendedDataTable) and are there any selected rows with javascript? I need smth like #{rich:component('myTable')}.getRowsCount() and #{rich:component('myTable')}.isSelectionAvailable(), anything.