table.add(getText("file_deleted"));
addLineToContainer(new Object[]{getText("file_deleted")}, "delete_result", "delete_result");
	protected void initializeComponent(FacesContext context) {		String pathToUse = IWContext.getIWContext(context).getParameter(PARAMETER_PATH);		Boolean deleted = (Boolean) WFUtil.invoke("webdavdocumentdeleterbean", "getDeleted");		Table table = null;		if (deleted == null) {			String clickedPath = null;			if (pathToUse != null) {				clickedPath = pathToUse;			} else {				clickedPath =(String) WFUtil.invoke("WebDAVListBean", "getClickedFilePath");			}			WebdavExtendedResource resource = null;			try {				resource = getIWSlideSession().getWebdavResource(clickedPath);			}			catch (HttpException e1) {				e1.printStackTrace();			}			catch (RemoteException e1) {				e1.printStackTrace();			}			catch (IOException e1) {				e1.printStackTrace();			}			//			WebdavExtendedResource resource = super.getWebdavExtendedResource();			String path = resource.getPath();			try {				path = path.replaceFirst(getIWSlideSession().getWebdavServerURI(), "");			}			catch (RemoteException e) {				e.printStackTrace();			}				table = new Table();			int row = 1;			table.add(WFUtil.getText(path, "wf_text"), 1, row++);			//			if (showResourceName) {//				HtmlOutputText resName = new HtmlOutputText();//				resName.setValue(resource.getName());//				resName.setStyleClass("wf_header_text");//				//				table.add(resName, 1, row++);//			}						if (resource.isCollection()) {				table.add(getText("are_you_sure_you_want_to_delete_folder"), 1, row++);			} else {				table.add(getText("are_you_sure_you_want_to_delete_file"), 1, row++);			}						HtmlCommandButton button = new HtmlCommandButton();			button.getAttributes().put(ACTION, ACTION_YES);			button.getAttributes().put(PARAMETER_PATH, resource.getPath());			button.setActionListener(WFUtil.createMethodBinding("#{contentviewerbean.processAction}", new Class[]{ActionEvent.class}));			getBundle().getLocalizedUIComponent("yes", button);			table.setAlignment(1, row, Table.HORIZONTAL_ALIGN_RIGHT);			table.add(button, 1, row);					} else {			table = new Table();			Boolean wasFolder = (Boolean) WFUtil.invoke("webdavdocumentdeleterbean", "getWasFolder");			if (deleted.booleanValue()) {				if (wasFolder.booleanValue()) {					table.add(getText("folder_deleted"));				} else {					table.add(getText("file_deleted"));				}			} else {				table.add(getText("deletion_failed"));			}			try {				ContentViewer viewer = (ContentViewer) getParent().getParent();				viewer.setRenderFlags(ContentViewer.ACTION_LIST);			} catch (ClassCastException c) {				System.out.println("[WebDAVDocumentDeleter] grandpa is not ContentViewer");			}		}		if (table != null) {			if (embedInForm) {				HtmlForm form = new HtmlForm();				form.setId("webdavdeleterform_"+getId());				form.setEnctype("multipart/form-data");				form.getChildren().add(table);				getChildren().add(form);			} else {				getChildren().add(table);			}		}	}