Package javax.faces.model

Examples of javax.faces.model.ListDataModel


        List allFolders = FolderDao.createInstance().list();
        List allViewFolders = new ArrayList(allFolders.size());
        for (Iterator it = allFolders.iterator(); it.hasNext(); ) {
            allViewFolders.add(new ViewFolder((Folder) it.next()));
        }
        this.folders = new ListDataModel();
        this.folders.setWrappedData(allViewFolders);
       
        return "exploration_folder_list";
    }
View Full Code Here


        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        DataModel collections = new ListDataModel();
        collections.setWrappedData(collectionViewCollections);
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setCollections(collections);
        collectionBean.setSelectedCollection(new ViewCollection(collection));
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
        DataModel foldersDataModel = new ListDataModel();
        foldersDataModel.setWrappedData(collectionViewFolders);
        this.folders = foldersDataModel;
       
        return "workspace_content_collection";
    }
View Full Code Here

        List folderStoredFiles = folder.getStoredFiles();
        List folderViewStoredFiles = new ArrayList(folderStoredFiles.size());
        for (Iterator it = folderStoredFiles.iterator(); it.hasNext(); ) {
            folderViewStoredFiles.add(new ViewStoredFile((StoredFile) it.next()));
        }
        DataModel storedFilesDataModel = new ListDataModel();
        storedFilesDataModel.setWrappedData(folderViewStoredFiles);
        StoredFileBean storedFileBean = (StoredFileBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(StoredFileBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        storedFileBean.setStoredFiles(storedFilesDataModel);
       
        return "workspace_content_folder";
    }
View Full Code Here

        List ownerFolders = FolderDao.createInstance().ownerList(user);
        List ownerViewFolders = new ArrayList(ownerFolders.size());
        for (Iterator it = ownerFolders.iterator(); it.hasNext(); ) {
            ownerViewFolders.add(new ViewFolder((Folder) it.next()));
        }
        this.folders = new ListDataModel();
        this.folders.setWrappedData(ownerViewFolders);
       
        return "workspace_folder_owner";
    }
View Full Code Here

        try {
            SearchQueryManager sqm = SearchQueryManager.getInstance(IndexerServlet.getIndexConfigFilePath(), IndexerServlet.getIndexDir());
            String query = buildQueryForm();
            System.out.println("Query Print :"+query);
            List queryResults = sqm.searchFolders(query);
            this.results = new ListDataModel();
            this.results.setWrappedData(queryResults);
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

    for (Iterator it = foldersList.iterator(); it.hasNext(); ) {
      Folder folder = (Folder) it.next();
     
            viewFolders.add(new ViewFolder(folder, ""));
    }
    ListDataModel listDataModel = new ListDataModel();
    listDataModel.setWrappedData(viewFolders);
    this.folders = listDataModel;
   
    return this.folders;
  }
View Full Code Here

            return "";
        }

        try {
            List queryResults = SearchQueryManager.getInstance(IndexerServlet.getIndexConfigFilePath(), IndexerServlet.getIndexDir()).searchFolders(this.query);
            this.results = new ListDataModel();
            this.results.setWrappedData(queryResults);
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

            List baseCollections = this.selectedCollection.getCollections();
            List baseViewCollections = new ArrayList(baseCollections.size());
            for (Iterator it = baseCollections.iterator(); it.hasNext(); ) {
                baseViewCollections.add(new ViewCollection((Collection) it.next()));
            }
            this.collections = new ListDataModel();
            this.collections.setWrappedData(baseViewCollections);
        }
       
        return "exploration_collection_list";
    }
View Full Code Here

        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
        this.collections.setWrappedData(collectionViewCollections);
       
        return "exploration_collection_list";
    }
View Full Code Here

        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
        this.collections.setWrappedData(collectionViewCollections);
       
        return "exploration_collection_list";
    }
View Full Code Here

TOP

Related Classes of javax.faces.model.ListDataModel

Copyright © 2018 www.massapicom. 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.