protected void renderHiddenInput(FacesContext context, String id, String value, boolean disabled) throws IOException {
        ResponseWriter writer = context.getResponseWriter();
        writer.startElement("input", null);
        writer.writeAttribute("id", id, null);
        writer.writeAttribute("name", id, null);
        writer.writeAttribute("type", "hidden", null);
        if (disabled) {
            writer.writeAttribute("disabled", "disabled", null);
        }
        if (value != null) {
            writer.writeAttribute("value", value, null);
        }
        writer.endElement("input");
    }
Renders a hidden input field commonly use for holding state for a component.

@param context the FacesContext
@param id the id of the hidden field
@param value the value of the hidden field, can be NULL
@param disabled whether the hidden field is disabled or not
@throws IOException if any error occurs
primefaces/src/main/java/org/primefaces/renderkit/CoreRenderer.java