// Create File chooser for the web app root directory
File webappRootFile = new File(WebappHelper.getContextRoot());
VFSContainer webappRoot = new LocalFolderImpl(webappRootFile);
// don't show cvs and hidden files meta files
VFSItemFilter filter = new VFSItemExcludePrefixFilter(new String[]{"CVS","cvs", "."});
// create file chooser with the filter and the web app root
chooserCtr = FileChooserUIFactory.createFileChooserController(ureq, getWindowControl(), webappRoot, filter, false);
listenTo(chooserCtr);
contentVC.put("chooserCtr", chooserCtr.getInitialComponent());