public void testIdAttrHtml() {
Widget w = new TextAreaWidget();
String[] value = new String[]{"hello"};
Map<String, Object> attrs = new HashMap<String, Object>();
attrs.put("id", "id_%s");
String output = w.render("field", value, attrs);
String html = "<textarea id=\"id_field\" name=\"field\" rows=\"10\" cols=\"40\">hello</textarea>";
assertEquals(html, output);
}
public void testWithRowsColsAttrs() {