From bdf65644cc33b64edbfea11aef314a6e00b0bc05 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Mon, 3 Mar 2014 12:05:11 +0000 Subject: [PATCH] Minor Updated git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-gwt-service@92549 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../user/td/gwtservice/server/TDGWTServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java index 71c46dd..e229eb7 100644 --- a/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java +++ b/src/main/java/org/gcube/portlets/user/td/gwtservice/server/TDGWTServiceImpl.java @@ -870,9 +870,12 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements } } else { + logger.debug("Old Filter:" + filter); logger.debug("New Filter: " + plc.getFilter()); + if (plc.getFilter() == null || plc.getFilter().isEmpty()) { + SessionUtil.setCodelistsPagingLoadedFilter(session,plc.getFilter()); return ltr; } else { if (filter.compareTo(plc.getFilter()) == 0) { @@ -880,6 +883,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements .getCodelistsPagingLoadedFilteredCopy(session); return ltrFilteredCopy; } else { + SessionUtil.setCodelistsPagingLoadedFilter(session,plc.getFilter()); for (TabResource tr : ltr) { if (tr.getName().contains(plc.getFilter())) { ltrCopy.add(tr); @@ -899,7 +903,7 @@ public class TDGWTServiceImpl extends RemoteServiceServlet implements return ltrCopy; } } - + } }