protected List<SelectItem> toSelectItem(List<Service> services) {
List<SelectItem> ret = new ArrayList<SelectItem>();
logger.fine("toSelectItem services: "+services);
for(int i=0; i<services.size(); i++ ) {
Service service = services.get(i);
//value must be a string - that seems to be a bug
//ret.add(new SelectItem(service, "label#"+i));
ret.add(new SelectItem(service.getId(), service.getName(), service.getEndpoint()));
//logger.debug("select item for: "+service.getId()+" "+ service.getName()+" "+ service.getEndpoint());
}
return ret;
}