((WFBlock)permissions).setToolbar(getToolbar());
	public void encodeChildren(FacesContext context) throws IOException {		super.encodeChildren(context);//		UIComponent bar = getFacet(BAR);//		if (bar != null) {//			renderChild(context, bar);//		}		UIComponent list = getFacet(ACTION_LIST);		if (list != null) {			list.setRendered(renderWebDAVList);			renderChild(context, list);			((WFBlock)list).setToolbar(getToolbar());		}				UIComponent details = getFacet(ACTION_FILE_DETAILS);		if (details != null) {			details.setRendered(renderWebDAVFileDetails);			renderChild(context, details);			((WFBlock)details).setToolbar(getToolbar());		}		UIComponent detailsLess = getFacet(ACTION_FILE_DETAILS_LESS);		if (detailsLess != null) {			detailsLess.setRendered(renderWebDAVFilePreview);			renderChild(context, detailsLess);		}				UIComponent preview = getFacet(ACTION_PREVIEW);		if (preview != null) {			preview.setRendered(renderWebDAVFilePreview);			renderChild(context, preview);		}				UIComponent folder = getFacet(ACTION_NEW_FOLDER);		if (folder != null) {			folder.setRendered(renderWebDAVNewFolder);			renderChild(context, folder);		}		UIComponent permissions = getFacet(ACTION_PERMISSIONS);		if (permissions != null) {			permissions.setRendered(renderWebDAVFilePermissions);			renderChild(context, permissions);			((WFBlock)permissions).setToolbar(getToolbar());		}				UIComponent deleter = getFacet(ACTION_DELETE);		if (deleter != null) {			deleter.setRendered(renderWebDAVDeleter);			renderChild(context, deleter);		}				UIComponent upload = getFacet(ACTION_UPLOAD);		if (upload != null) {			upload.setRendered(doRenderUploadeComponent());			renderChild(context, upload);		}	}