Package org.primefaces.model

Examples of org.primefaces.model.LazyDataModel.load()


   
    protected void loadLazyData(DataScroller ds, int start, int size) {
        LazyDataModel lazyModel = (LazyDataModel) ds.getValue();
       
        if(lazyModel != null) {     
            List<?> data = lazyModel.load(start, size, null, null, null);
            lazyModel.setPageSize(size);
            lazyModel.setWrappedData(data);
        }
    }
View Full Code Here


       
        if(model instanceof LazyDataModel) {
            LazyDataModel lazyModel = (LazyDataModel) model;
            lazyModel.setPageSize(getRows());

            List<?> data = lazyModel.load(getFirst(), getRows(), resolveSortField(this.getValueExpression("sortBy")), convertSortOrder(), getFilters());

            lazyModel.setWrappedData(data);

            //Update paginator for callback
            if(this.isPaginator()) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.