previewBlock.setToolbar(getToolbar());
previewBlock.setToolbar(getToolbar(previewBlockId));
	public void initializeContent() {	//		String startFolder = (String) this.getAttributes().get("startFolder");//		String iconTheme = (String) this.getAttributes().get("iconTheme");//		rootFolder ="/files/shared";		WFBlock listBlock = new WFBlock();		WFTitlebar tb = new WFTitlebar();		tb.addTitleText(getBundle().getLocalizedText("document_list"));		tb.addTitleText(getCurrentResourceName());		tb.setToolTip(getCurrentFolderPath());//		tb.addTitleText("WebDAVListBean.virtualWebDAVPath", true);//		tb.addTitleText("WebDAVListBean.webDAVPath", true);//		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);		list.setIconTheme(iconTheme);		list.setShowFolders(showFolders);		list.setShowDropboxFolder(showDropboxFolder);		list.setShowPublicFolder(showPublicFolder);		list.setColumnsToHide(columnsToHide);		list.setUseVersionControl(useVersionControl);		list.setOnFileClickEvent(onFileClickEvent);		listBlock.add(list);				WFBlock detailsBlock = new WFBlock();		WFTitlebar detailsBar = new WFTitlebar();		detailsBar.addTitleText(getBundle().getLocalizedText("document_details"));		detailsBar.addTitleText(" (");		detailsBar.addTitleText(getCurrentFileName());		detailsBar.addTitleText(")");		detailsBlock.setTitlebar(detailsBar);		detailsBlock.setToolbar(getToolbar());		WebDAVFileDetails details = new WebDAVFileDetails();		details.setRendered(renderWebDAVFileDetails);		details.setId(getId()+"_details");		details.setUseVersionControl(useVersionControl);		detailsBlock.add(details);				WFBlock previewBlock = new WFBlock();		WFTitlebar previewBar = new WFTitlebar();		previewBar.addTitleText(getBundle().getLocalizedText("document_details"));		previewBar.addTitleText(" (");		previewBar.addTitleText(getCurrentFileName());		previewBar.addTitleText(")");		previewBlock.setTitlebar(previewBar);		previewBlock.setToolbar(getToolbar());		WebDAVFileDetails details2 = new WebDAVFileDetails();		details2.setRendered(renderWebDAVFilePreview);		details2.setId(getId()+"_details");		details2.setDetailed(false);		details2.setUseVersionControl(useVersionControl);		WebDAVFilePreview preview = new WebDAVFilePreview();		preview.setRendered(renderWebDAVFilePreview);		preview.setId(getId()+"_preview");		previewBlock.add(details2);				WFBlock folderBlock = new WFBlock();		WFTitlebar folderBar = new WFTitlebar();		folderBar.addTitleText(getBundle().getLocalizedText("create_a_folder"));		folderBar.addTitleText(getCurrentResourceName());		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.addTitleText(getBundle().getLocalizedText("upload"));		uploadBar.addTitleText(getCurrentResourceName());		uploadBlock.setTitlebar(uploadBar);		//uploadBlock.setToolbar(new WFToolbar());		WebDAVUpload upload = new WebDAVUpload();//		upload.setRendered(renderWebDAVUpload);		upload.setId(getId()+"_upload");		uploadBlock.add(upload);				WFBlock deleteBlock = new WFBlock();		WFTitlebar deleteBar = new WFTitlebar();		deleteBar.addTitleText(getBundle().getLocalizedText("delete"));		deleteBar.addTitleText(getCurrentResourcePath());		deleteBlock.setTitlebar(deleteBar);		deleteBlock.setToolbar(new WFToolbar());				WebDAVDocumentDeleter deleter = new WebDAVDocumentDeleter();		deleter.setRendered(renderWebDAVDeleter);		deleter.setId(getId()+"_deleter");		deleteBlock.add(deleter);//		getFacets().put(BAR, bar);//		getChildren().add(bar);//		super.setToolbar(bar);				WFBlock permissionsBlock = new WFBlock();		WFTitlebar permissionsBar = new WFTitlebar();		permissionsBar.addTitleText(getBundle().getLocalizedText("permissions"));		permissionsBar.addTitleText(getCurrentResourceName());		permissionsBlock.setTitlebar(permissionsBar);		permissionsBlock.setToolbar(getToolbar());		WebDAVFilePermissions permissions = new WebDAVFilePermissions();		permissions.setRendered(renderWebDAVFilePermissions);		permissions.setId(getId()+"_permissions");		permissionsBlock.add(permissions);				getFacets().put(ACTION_LIST, listBlock);		getFacets().put(ACTION_FILE_DETAILS, detailsBlock);		getFacets().put(ACTION_FILE_DETAILS_LESS, previewBlock);		getFacets().put(ACTION_PREVIEW, preview);		getFacets().put(ACTION_PERMISSIONS, permissionsBlock);		getFacets().put(ACTION_NEW_FOLDER, folderBlock);		getFacets().put(ACTION_UPLOAD, uploadBlock);		getFacets().put(ACTION_DELETE, deleteBlock);			}