public void setBeanList ( final List beanList ) { RepeaterModel model = getOrCreateComponentModel ( ) ; model . setData ( beanList ) ; // Clean up any stale data. HashSet rowIds = new HashSet ( beanList . size ( ) ) ; for ( Object bean : beanList ) { rowIds . add ( getRowId ( bean ) ) ; } cleanupStaleContexts ( rowIds ) ; // Clean up cached component IDs UIContext uic = UIContextHolder . getCurrent ( ) ; if ( uic != null && getRepeatRoot ( ) != null ) { clearScratchMaps ( this ) ; } }
Remember the list of beans that hold the data object for each row .