public PSMittel getTypForId(String id) { for (PSMittel t : this.data) { if (t.getId().equals(Long.valueOf(id))) { return t; } } return null; }
protected void setData(List<PSMittel> result) { this.data = result; LinkedHashMap<String, String> valueMap = new LinkedHashMap<String, String>(); for (PSMittel ps : result) { valueMap.put(ps.getId().toString(), ps.getName()); } selectItem.setValueMap(valueMap); }