From c3e352d5acb9bd00c81950593b55cd8b3423514d Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Fri, 8 Nov 2024 18:22:55 +0100 Subject: [PATCH] improve display of total count and total pages Issue #613 --- .../webapp/pages/workitems/worklist.xhtml | 39 ++++++++++++------- .../office/views/SearchController.java | 10 ----- 2 files changed, 24 insertions(+), 25 deletions(-) diff --git a/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml b/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml index 1bdb3db1..86cba521 100644 --- a/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml +++ b/imixs-office-workflow-app/src/main/webapp/pages/workitems/worklist.xhtml @@ -18,16 +18,22 @@ src="#{facesContext.externalContext.requestContextPath}/js/imixs-office.worklist.custom.js?build=#{app.application_build_timestamp}"> - - - - - - + + + + + + + + + +
@@ -48,8 +54,6 @@
- -
@@ -83,25 +87,32 @@ itemLabel="#{message['worklist.sortorder_relevance']}" /> + + + + + +
+ - - @@ -111,9 +122,7 @@ - - + @@ -157,12 +166,12 @@
- -
diff --git a/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java b/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java index df6bd109..a80ae2fc 100644 --- a/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java +++ b/imixs-office-workflow-util/src/main/java/org/imixs/workflow/office/views/SearchController.java @@ -47,7 +47,6 @@ import org.imixs.workflow.engine.index.SchemaService; import org.imixs.workflow.exceptions.InvalidAccessException; import org.imixs.workflow.exceptions.ModelException; -import org.imixs.workflow.exceptions.QueryException; import org.imixs.workflow.faces.data.ViewController; import org.imixs.workflow.faces.util.LoginController; import org.imixs.workflow.office.config.SetupController; @@ -590,13 +589,4 @@ public String getQuery() { return query; } - public long getCount() { - long result = 0; - try { - result = documentService.count(getQuery()); - } catch (QueryException e) { - e.printStackTrace(); - } - return result; - } }