renderUploadLink = false;
	public void encodeBegin(FacesContext context) throws IOException {		Boolean fileSelected = (Boolean) WFUtil.invoke("WebDAVListBean", "getIsClickedFile");		String tmp = (String) context.getExternalContext().getRequestParameterMap().get(PARAMETER_ROOT_FOLDER);		if (tmp != null) {			IWUserContext iwuc = IWContext.getInstance();						IWSlideSession ss = (IWSlideSession) IBOLookup.getSessionInstance(iwuc, IWSlideSession.class);			String webDAVServerURI = ss.getWebdavServerURI();			tmp = tmp.replaceFirst(webDAVServerURI, "");			WFUtil.invoke("WebDAVListBean", "setWebDAVPath", tmp);			rootFolder = tmp;		}		if (LIST.equals(currentAction)) {						renderListLink = true;			renderDetailsLink = false;			renderPreviewLink = false;						super.setToolbar(getToolbar());		}		else {			if (fileSelected.booleanValue()) {								renderListLink = true;				renderDetailsLink = true;				renderPreviewLink = true;				renderNewFolderLink = false;								if (currentAction == null) {					setRenderFlags(FILE_DETAILS);				}				else if(PREVIEW.equals(currentAction)){					setRenderFlags(PREVIEW);				}								super.setToolbar(getToolbar());			}		}		super.encodeBegin(context);	}