public static StringBuffer inputHiddens(Map<String, Object> param) { StringBuffer sb = new StringBuffer(); Iterator<Entry<String, Object>> it = param.entrySet().iterator(); Entry<String, Object> entry; while (it.hasNext()) { entry = it.next(); // sb.append("<input type ='hidden'"); // sb.append(" name = '"+entry.getKey()+"'"); // sb.append(" value = '"+entry.getValue()+"'"); // sb.append("></input>"); sb.append(ControlUtil.makeInput(entry.getValue(), entry.getKey(), "hidden")); } return sb; }
private static StringBuffer makeTdWrapedInput(String value, String ctrlname, boolean editable) { value = StringUtil.trim(value); String type; StringBuffer ret = new StringBuffer(); ret.append("<td class='output'>"); if (editable) { type = "text"; } else { type = "hidden"; ret.append(value); } ret.append(ControlUtil.makeInput(value, ctrlname, type)); ret.append("</td>"); return ret; }