bar.addButton(upload);
	public WFToolbar getToolbar() {		WFToolbar bar = new WFToolbar();				WFToolbarButton list = new WFToolbarButton("/images/list.jpg",getBundle());		list.getAttributes().put(PARAMETER_ACTION, LIST);		list.setId(getId()+"_btnList");		list.setToolTip("Document List");		list.setActionListener(WFUtil.createMethodBinding("#{contentviewerbean.processAction}", new Class[]{ActionEvent.class}));//		list.setValueBinding("rendered", WFUtil.createValueBinding("#{contentviewerbean.renderListLink}"));		list.setRendered(renderListLink);		WFToolbarButton details = new WFToolbarButton("/images/details.jpg",getBundle());		details.getAttributes().put(PARAMETER_ACTION, FILE_DETAILS);		details.setId(getId()+"_btnDetails");		details.setToolTip("Document Details");		details.setActionListener(WFUtil.createMethodBinding("#{contentviewerbean.processAction}", new Class[]{ActionEvent.class}));		details.setRendered(renderDetailsLink);		WFToolbarButton preview = new WFToolbarButton("/images/preview.jpg",getBundle());		preview.getAttributes().put(PARAMETER_ACTION, PREVIEW);		preview.setId(getId()+"_btnPreview");		preview.setToolTip("Document Preview");		preview.setActionListener(WFUtil.createMethodBinding("#{contentviewerbean.processAction}", new Class[]{ActionEvent.class}));		preview.setRendered(renderPreviewLink);				WFToolbarButton newFolder = new WFToolbarButton("/images/newfolder.gif",getBundle());		newFolder.getAttributes().put(PARAMETER_ACTION, NEW_FOLDER);		newFolder.setId(getId()+"_btnNewFolder");		newFolder.setToolTip("New Folder");		newFolder.setActionListener(WFUtil.createMethodBinding("#{contentviewerbean.processAction}", new Class[]{ActionEvent.class}));		newFolder.setRendered(renderNewFolderLink);				bar.addButton(newFolder);		bar.addButton(list);		bar.addButton(details);		bar.addButton(preview);		//		super.setToolbar(bar);//		getChildren().add(bar);		return bar;	}