diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/CustomSearchController.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/CustomSearchController.java index 42d6a11..c8eafa0 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/CustomSearchController.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/CustomSearchController.java @@ -24,8 +24,6 @@ package com.alexanderlogistics; import java.io.Serializable; -import java.io.UnsupportedEncodingException; -import java.net.URLEncoder; import java.text.DecimalFormat; import java.text.SimpleDateFormat; import java.util.Calendar; @@ -37,7 +35,7 @@ import org.imixs.workflow.ItemCollection; import org.imixs.workflow.office.views.SearchController; import org.imixs.workflow.office.views.SearchEvent; -import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.context.SessionScoped; import jakarta.enterprise.event.Observes; import jakarta.inject.Inject; import jakarta.inject.Named; @@ -51,8 +49,8 @@ import jakarta.inject.Named; */ @Named -// @SessionScoped -@RequestScoped +@SessionScoped +// @RequestScoped public class CustomSearchController implements Serializable { private static final long serialVersionUID = 1L; @@ -195,17 +193,25 @@ public class CustomSearchController implements Serializable { */ public String refreshAGLArchive() { String phrase = searchController.getSearchFilter().getItemValueString("phrase"); - - searchController.getSearchFilter().setItemValue("Type", "workitemarchive"); - try { - phrase = URLEncoder.encode(phrase, "UTF-8"); - } catch (UnsupportedEncodingException e) { - logger.severe("unable to encode search phrase!"); - e.printStackTrace(); - } + searchController.refreshSearch(); + searchController.getSearchFilter().setItemValue("type", "workitemarchive"); String action = "/pages/workitems/agl_archive.xhtml?faces-redirect=true&phrase=" + phrase; - searchController.setPageIndex(0); return action; + + // String phrase = + // searchController.getSearchFilter().getItemValueString("phrase"); + + // searchController.getSearchFilter().setItemValue("type", "workitemarchive"); + // try { + // phrase = URLEncoder.encode(phrase, "UTF-8"); + // } catch (UnsupportedEncodingException e) { + // logger.severe("unable to encode search phrase!"); + // e.printStackTrace(); + // } + // String action = + // "/pages/workitems/agl_archive.xhtml?faces-redirect=true&phrase=" + phrase; + // searchController.setPageIndex(0); + // return action; } /** diff --git a/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive.xhtml b/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive.xhtml index f4b7ddc..bd532bb 100644 --- a/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive.xhtml +++ b/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive.xhtml @@ -10,6 +10,7 @@ + @@ -18,12 +19,21 @@ - - - - + + + + + + + + + + +
@@ -41,40 +51,72 @@
+
+ + + -
- - - - - - - +
+
+ + + + + + + + + + + + + + +
+ + + + + + + + +
+
- - + +
#{message.total_result} #{searchresultCount} #{message.serach_hits}
@@ -85,6 +127,7 @@ + @@ -109,18 +152,18 @@
diff --git a/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive_filter.xhtml b/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive_filter.xhtml index e6b7ab4..f268004 100644 --- a/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive_filter.xhtml +++ b/office-alexander-logistics-app/src/main/webapp/pages/workitems/agl_archive_filter.xhtml @@ -4,7 +4,7 @@ xmlns:pt="http://xmlns.jcp.org/jsf/passthrough" xmlns:marty="http://xmlns.jcp.org/jsf/composite/marty" xmlns:i="http://xmlns.jcp.org/jsf/composite/imixs"> - +