Revision: 1885
Author: [email protected]
Date: Wed May 19 06:33:03 2010
Log: Filter out IDoapResources that have no name, these won't be displayed anyway and would otherwise result in a empty rows on the page.
http://code.google.com/p/simal/source/detail?r=1885

Modified:
/trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableDoapResourceDataProvider.java

=======================================
--- /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableDoapResourceDataProvider.java Thu Jun 18 18:17:32 2009 +++ /trunk/uk.ac.osswatch.simal.web/src/main/java/uk/ac/osswatch/simal/wicket/data/SortableDoapResourceDataProvider.java Wed May 19 06:33:03 2010
@@ -105,10 +105,10 @@
     IDoapResource current;
     while (all.hasNext() && idx - (first + count) < 0) {
       current = all.next();
-      if (idx >= first) {
+      if (idx >= first && current.getName() != "") {
         result.add(current);
-      }
-      idx++;
+        idx++;
+      }
     }
     return result.iterator();
   }

--
You received this message because you are subscribed to the Google Groups "Simal 
Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simal-commits?hl=en.

Reply via email to