--- /dev/null
+package hu.user.lis.ui.converter;
+
+import hu.user.lis.db.Associate;
+import hu.user.lis.services.data.AssociateService;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+import org.zkoss.bind.BindContext;
+import org.zkoss.bind.Converter;
+import org.zkoss.zul.impl.XulElement;
+
+@Component
+public class AssociateIdToNameConverter implements Converter<String, String, XulElement> {
+ @Autowired
+ AssociateService associateService;
+
+ @Override
+ public String coerceToUi(String associateId, XulElement element, BindContext bindContext) {
+ Associate associate = StringUtils.isBlank(associateId) ? null : associateService.getById(associateId);
+ return associate == null ? null : associate.getName();
+ }
+
+ @Override
+ public String coerceToBean(String s, XulElement element, BindContext bindContext) {
+
+ return null;
+ }
+}
\ No newline at end of file