	public void initializeContent() {	
		Boolean useUserHomeFolder = (Boolean) this.getAttributes().get("useUserHomeFolder");
		if (useUserHomeFolder != null && useUserHomeFolder.booleanValue()) {
			rootFolder = super.getIWSlideSession().getUserHomeFolder();
		}
		String startFolder = (String) this.getAttributes().get("startFolder");
		if (rootFolder == null) {
			rootFolder = (String) this.getAttributes().get("rootFolder");
		}
		WFBlock listBlock = new WFBlock();
		WFTitlebar tb = new WFTitlebar();
		tb.setValueRefTitle(true);
		tb.setTitleText("WebDAVListBean.webDAVPath");		
		listBlock.setToolbarEmbeddedInTitlebar(true);
		listBlock.setTitlebar(tb);
		listBlock.setToolbar(getToolbar());
		WebDAVList list = new WebDAVList();
		list.setId(getId()+"_list");
		list.setRendered(renderWebDAVList);
		list.setStartFolder(startFolder);
		listBlock.add(list);
		WFBlock detailsBlock = new WFBlock();
		WFTitlebar detailsBar = new WFTitlebar();
		detailsBar.setTitleText(getBundle().getLocalizedText("document_details"));
		detailsBlock.setTitlebar(detailsBar);
		detailsBlock.setToolbar(getToolbar());
		WebDAVFileDetails details = new WebDAVFileDetails();
		details.setRendered(renderWebDAVFileDetails);
		details.setId(getId()+"_details");
		detailsBlock.add(details);
		WFBlock previewBlock = new WFBlock();
		WFTitlebar previewBar = new WFTitlebar();
		previewBar.setTitleText(getBundle().getLocalizedText("document_details"));
		previewBlock.setTitlebar(previewBar);
		previewBlock.setToolbar(getToolbar());
		WebDAVFileDetails details2 = new WebDAVFileDetails();
		details2.setRendered(renderWebDAVFilePreview);
		details2.setId(getId()+"_details");
		details2.setDetailed(false);
		WebDAVFilePreview preview = new WebDAVFilePreview();
		preview.setRendered(renderWebDAVFilePreview);
		preview.setId(getId()+"_preview");
		previewBlock.add(details2);
		WFBlock folderBlock = new WFBlock();
		WFTitlebar folderBar = new WFTitlebar();
		folderBar.setTitleText(getBundle().getLocalizedText("create_a_folder"));
		folderBlock.setTitlebar(folderBar);
		folderBlock.setToolbar(new WFToolbar());
		WebDAVFolderCreation folder = new WebDAVFolderCreation();
		folder.setRendered(renderWebDAVNewFolder);
		folder.setId(getId()+"_folder");
		folderBlock.add(folder);
		WFBlock uploadBlock = new WFBlock();
		WFTitlebar uploadBar = new WFTitlebar();
		uploadBar.setTitleText(getBundle().getLocalizedText("upload"));
		uploadBlock.setTitlebar(uploadBar);
		uploadBlock.setToolbar(new WFToolbar());
		WebDAVUpload upload = new WebDAVUpload();
		upload.setId(getId()+"_upload");
		uploadBlock.add(upload);
		WFBlock deleteBlock = new WFBlock();
		WFTitlebar deleteBar = new WFTitlebar();
		deleteBar.setTitleText(getBundle().getLocalizedText("delete"));
		deleteBlock.setTitlebar(deleteBar);
		deleteBlock.setToolbar(new WFToolbar());
		WebDAVDocumentDeleter deleter = new WebDAVDocumentDeleter();
		deleter.setRendered(renderWebDAVDeleter);
		deleter.setId(getId()+"_deleter");
		deleteBlock.add(deleter);
		getFacets().put(LIST, listBlock);
		getFacets().put(FILE_DETAILS, detailsBlock);
		getFacets().put(FILE_DETAILS_LESS, previewBlock);
		getFacets().put(PREVIEW, preview);
		getFacets().put(NEW_FOLDER, folderBlock);
		getFacets().put(UPLOAD, uploadBlock);
		getFacets().put(DELETE, deleteBlock);
	}

	public void initializeContent() {	
		Boolean useUserHomeFolder = (Boolean) this.getAttributes().get("useUserHomeFolder");
		if (useUserHomeFolder != null && useUserHomeFolder.booleanValue()) {
			rootFolder = super.getIWSlideSession().getUserHomeFolder();
		}
		String startFolder = (String) this.getAttributes().get("startFolder");
		if (rootFolder == null) {
			rootFolder = (String) this.getAttributes().get("rootFolder");
		}
		WFBlock listBlock = new WFBlock();
		WFTitlebar tb = new WFTitlebar();
		tb.setValueRefTitle(true);
		tb.setTitleText("WebDAVListBean.webDAVPath");		
		listBlock.setToolbarEmbeddedInTitlebar(true);
		listBlock.setTitlebar(tb);
		listBlock.setToolbar(getToolbar());
		WebDAVList list = new WebDAVList();
		list.setId(getId()+"_list");
		list.setRendered(renderWebDAVList);
		list.setStartFolder(startFolder);
		list.setRootFolder(rootFolder);
		listBlock.add(list);
		WFBlock detailsBlock = new WFBlock();
		WFTitlebar detailsBar = new WFTitlebar();
		detailsBar.setTitleText(getBundle().getLocalizedText("document_details"));
		detailsBlock.setTitlebar(detailsBar);
		detailsBlock.setToolbar(getToolbar());
		WebDAVFileDetails details = new WebDAVFileDetails();
		details.setRendered(renderWebDAVFileDetails);
		details.setId(getId()+"_details");
		detailsBlock.add(details);
		WFBlock previewBlock = new WFBlock();
		WFTitlebar previewBar = new WFTitlebar();
		previewBar.setTitleText(getBundle().getLocalizedText("document_details"));
		previewBlock.setTitlebar(previewBar);
		previewBlock.setToolbar(getToolbar());
		WebDAVFileDetails details2 = new WebDAVFileDetails();
		details2.setRendered(renderWebDAVFilePreview);
		details2.setId(getId()+"_details");
		details2.setDetailed(false);
		WebDAVFilePreview preview = new WebDAVFilePreview();
		preview.setRendered(renderWebDAVFilePreview);
		preview.setId(getId()+"_preview");
		previewBlock.add(details2);
		WFBlock folderBlock = new WFBlock();
		WFTitlebar folderBar = new WFTitlebar();
		folderBar.setTitleText(getBundle().getLocalizedText("create_a_folder"));
		folderBlock.setTitlebar(folderBar);
		folderBlock.setToolbar(new WFToolbar());
		WebDAVFolderCreation folder = new WebDAVFolderCreation();
		folder.setRendered(renderWebDAVNewFolder);
		folder.setId(getId()+"_folder");
		folderBlock.add(folder);
		WFBlock uploadBlock = new WFBlock();
		WFTitlebar uploadBar = new WFTitlebar();
		uploadBar.setTitleText(getBundle().getLocalizedText("upload"));
		uploadBlock.setTitlebar(uploadBar);
		uploadBlock.setToolbar(new WFToolbar());
		WebDAVUpload upload = new WebDAVUpload();
		upload.setId(getId()+"_upload");
		uploadBlock.add(upload);
		WFBlock deleteBlock = new WFBlock();
		WFTitlebar deleteBar = new WFTitlebar();
		deleteBar.setTitleText(getBundle().getLocalizedText("delete"));
		deleteBlock.setTitlebar(deleteBar);
		deleteBlock.setToolbar(new WFToolbar());
		WebDAVDocumentDeleter deleter = new WebDAVDocumentDeleter();
		deleter.setRendered(renderWebDAVDeleter);
		deleter.setId(getId()+"_deleter");
		deleteBlock.add(deleter);
		getFacets().put(LIST, listBlock);
		getFacets().put(FILE_DETAILS, detailsBlock);
		getFacets().put(FILE_DETAILS_LESS, previewBlock);
		getFacets().put(PREVIEW, preview);
		getFacets().put(NEW_FOLDER, folderBlock);
		getFacets().put(UPLOAD, uploadBlock);
		getFacets().put(DELETE, deleteBlock);
	}
