out.endElement("span");
out.writeAttribute("href","#",null);    out.endElement("a");
	public void encodeEnd(FacesContext context) throws IOException {		ResponseWriter out = context.getResponseWriter();		String buttonId = getClientId(context);		String imageId = buttonId + "_img";				out.startElement("input", null);		out.writeAttribute("id", buttonId, null);		out.writeAttribute("type", "hidden", null);		out.writeAttribute("name", buttonId, null);		out.writeAttribute("value", "false", null);		out.writeAttribute("style", "display:none;", null);		out.endElement("input");		String formName = determineFormName(this);		if (getDefaultImageURI() != null) {			out.startElement("img", null);			out.writeAttribute("src", getDefaultImageURI(), null);			out.writeAttribute("id", imageId, null);			if (formName == null) {				throw new IOException("Toolbars should be nested in a UIForm !");			}			if (toolTip != null) {				out.writeAttribute("alt", toolTip, null);				out.writeAttribute("title", toolTip, null);			}			if (getPressedImageURI() != null) {				String onmousedown = "this.src='" + getPressedImageURI() +"'";				out.writeAttribute("onmousedown", onmousedown, null);			}			String onmouseup = "document.forms['" + formName + "'].elements['" + buttonId + 			"'].value='true';document.forms['" + formName + "'].submit();";			out.writeAttribute("onmouseup", onmouseup, null);			String onmouseout = "document.forms['" + formName + "'].elements['" + buttonId + "'].value='';this.src='" + 					getDefaultImageURI() + "'";			out.writeAttribute("onmouseout", onmouseout, null);			out.endElement("img");		} else {			out.startElement("span", null);			String onmouseup = "document.forms['" + formName + "'].elements['" + buttonId + 			"'].value='true';document.forms['" + formName + "'].submit();";			out.writeAttribute("onmouseup", onmouseup, null);			if (styleClass != null) {				out.writeAttribute("class", styleClass, null);			}			if (toolTip != null) {				out.writeAttribute("alt", toolTip, null);				out.writeAttribute("title", toolTip, null);			}			out.endElement("span");		}	}