size = Integer.parseInt(properties.get(SIZE));
}
public void drawInternal(DashboardContext context, StringBuffer output) {
Map<String, String> data = getData(context.getWebContext());
Select select = new Select("dummy", size, true);
//select.onChange("alert(''test'');");
final String dashboardId = context.getDashboardConfig().getDashboardId();
select.onChange("handleEvent(''" + dashboardId + "'', ''" + getId() + "'', ''onChange'', this.options[this.selectedIndex].value);");
for(String id:data.keySet()){
select.addOption(id, data.get(id));
}
output.append(select.draw());
}