Changeset 4989
- Timestamp:
- 04/16/14 10:06:59 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vlo/branches/vlo-3.0/vlo-web-app/src/main/java/eu/clarin/cmdi/vlo/wicket/provider/SolrDocumentProvider.java
r4661 r4989 36 36 private final IModel<QueryFacetsSelection> selectionModel; 37 37 38 private Long size; 39 38 40 public SolrDocumentProvider(IModel<QueryFacetsSelection> selection) { 39 41 this.selectionModel = selection; … … 50 52 @Override 51 53 public long size() { 52 return getDocumentService().getDocumentCount(selectionModel.getObject()); 54 if (size == null) { 55 size = getDocumentService().getDocumentCount(selectionModel.getObject()); 56 } 57 return size; 53 58 } 54 59 … … 61 66 public void detach() { 62 67 selectionModel.detach(); 68 size = null; 63 69 } 64 70
Note: See TracChangeset
for help on using the changeset viewer.