private void refreshCachedCellsInCurrentPage ( final FacesContext facesContext , final String tblName ) { // refresh current page calculation fields UIComponent s = facesContext . getViewRoot ( ) . findComponent ( tblName ) ; if ( s == null ) { return ; } DataTable webDataTable = ( DataTable ) s ; int first = webDataTable . getFirst ( ) ; int rowsToRender = webDataTable . getRowsToRender ( ) ; int rowCounts = webDataTable . getRowCount ( ) ; int top = parent . getCurrent ( ) . getCurrentTopRow ( ) ; int left = parent . getCurrent ( ) . getCurrentLeftColumn ( ) ; for ( int i = first ; i <= ( first + rowsToRender ) ; i ++ ) { if ( i < rowCounts ) { refreshCachedCellsInRow ( tblName , top , left , i ) ; } } }
Refresh cached cells in current page .