code: public String fixedCheckbox (String name, boolean value)
      {
          StringBuilder buf = new StringBuilder();
          buf.append("<input type=\"checkbox\"");
          buf.append(" name=\"").append(name).append("\"");
          if (value) {
              buf.append(_useXHTML ? " checked=\"checked\"" : " checked");
          }
          buf.append(getCloseBrace());
          return buf.toString();
      }
docs: Constructs a checkbox input field with the specified name and
  value.