@Override
public void encodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
super.encodeBegin(facesContext, component);
ResponseWriter responseWriter = facesContext.getResponseWriter();
responseWriter.startElement("textbox",component);
responseWriter.writeAttribute("id",component.getClientId(facesContext), "id");
renderAttributes(facesContext, component, (List) component
.getAttributes().get("annotatedAttributes"));
Object object = component.getAttributes().get("value");
if (object != null) {
responseWriter.writeAttribute("value", "" + getAsString(facesContext,component,object), "value");