<vlayout>\r
<hlayout>\r
<div><label value="@load(each.media.houseId)"/></div>\r
- <div><label value="@load(each.media.title)"/></div>\r
- <div><label value="@load(each.media.mediaFileRealName)"/></div>\r
+ <div style="text-overflow: ellipsis; white-space: nowrap; overflow: hidden;"><label value="@load(each.media.title)"/></div>\r
+ <div style="text-overflow: ellipsis; white-space: nowrap; overflow: hidden;"><label value="@load(each.media.mediaFileRealName)"/></div>\r
<div>\r
<label style="font-size: 10px;" value="@load(each.media.archived) @converter('user.jobengine.zk.model.ShortDateConverter')"/>\r
</div>\r
public class CachedListModel extends ListModelList<ArchivedMedia> {\r
private static final long serialVersionUID = 1L;\r
private static final Logger logger = LogManager.getLogger();\r
- private int cacheSize = 200;\r
+ private int cacheSize = 50;\r
private HashMap<Integer, ArchivedMedia> cache = new HashMap<Integer, ArchivedMedia>();\r
private boolean cachedMode = true;\r
\r
import java.util.LinkedHashMap;\r
import java.util.List;\r
import java.util.Map;\r
-import java.util.NoSuchElementException;\r
\r
import org.apache.commons.lang.StringUtils;\r
import org.apache.logging.log4j.LogManager;\r
}\r
\r
private void handleSearchError(Exception e) {\r
- if (e instanceof NullPointerException)\r
- Clients.showNotification("Database query error!", "error", btnSearch, "start_center", 3000);\r
- else if (e instanceof NoSuchElementException) {\r
- Clients.showNotification("NoSuchElementException!", "error", btnSearch, "start_center", 3000);\r
- } else {\r
- Clients.showNotification(e.getMessage(), "error", btnSearch, "start_center", 3000);\r
- }\r
\r
- if (e.getMessage() != null) {\r
- logger.error(e.getMessage());\r
- } else {\r
- logger.error("e.getMessage() == null");\r
+ StringBuilder sb = new StringBuilder();\r
+ sb.append(e.getClass().getSimpleName());\r
+ if (e.getMessage() == null) {\r
+ sb.append(": System message not available.");\r
}\r
+\r
+ Clients.showNotification(sb.toString(), "error", btnSearch, "start_center", 3000);\r
+ logger.error(sb.toString());\r
}\r
\r
private void highlight(ArchivedMedia am, boolean highlight) {\r