@Override public void encodeMarkupEnd(FacesContext facesContext, UIComponent uiComponent) throws IOException { // Finish the encoding of the hidden text input by delegating to the renderer from the JSF // runtime. DelegationResponseWriter delegationResponseWriter = getDelegationResponseWriter(facesContext, uiComponent); super.encodeMarkupEnd(facesContext, uiComponent, delegationResponseWriter); // Finish the encoding of the outermost </div> element. ResponseWriter responseWriter = facesContext.getResponseWriter(); responseWriter.endElement("div"); }