Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
Issue #583
  • Loading branch information
rsoika committed Jun 5, 2024
1 parent 4967386 commit 305da4a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 37 deletions.
Original file line number Diff line number Diff line change
@@ -1,29 +1,23 @@
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
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">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" 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">
<ui:param name="process"
value="#{teamController.getEntityById(searchController.searchFilter.item['_processref'])}" />
value="#{teamController.getEntityById(searchController.searchFilter.item['processref'])}" />

<!-- *** Filter *** -->
<div class="imixs-form-section-3">

<dl>
<dt>#{message['worklist.workflowgroup']}:</dt>
<dd>
<h:selectOneMenu
value="#{searchController.searchFilter.item['$WorkflowGroup']}">
<h:selectOneMenu value="#{searchController.searchFilter.item['$WorkflowGroup']}">
<f:selectItem itemValue="" itemLabel=" " />
<!-- Optional process.itemList['txtWorkflowList'] -->
<c:forEach items="#{modelController.workflowGroups}" var="workflow">
<f:selectItem itemValue="#{workflow}" itemLabel="#{workflow}" />
</c:forEach>
<f:ajax event="change" render="@form"
onevent="updateSearchForm" />
<f:ajax event="change" render="@form" onevent="updateSearchForm" />
</h:selectOneMenu>
</dd>
</dl>
Expand All @@ -38,53 +32,43 @@
<dt>#{message['worklist.workflowstatus']}:</dt>
<dd>

<h:selectOneMenu id="processid_selection"
value="#{searchController.searchFilter.item['$taskid']}">
<h:selectOneMenu id="processid_selection" value="#{searchController.searchFilter.item['$taskid']}">
<f:selectItem itemValue="" itemLabel=" " />
<c:forEach items="#{tasks}" var="processentity">
<f:selectItem itemValue="#{processentity.item['numProcessID']}"
itemLabel="#{processentity.item['txtname']}" />
</c:forEach>
<f:ajax event="change" render="@form"
onevent="updateSearchForm" />
<f:ajax event="change" render="@form" onevent="updateSearchForm" />
</h:selectOneMenu>
</dd>
</dl>
</h:panelGroup>

<!-- Spaces are shown if the process defines space selection or if property search.filter.spaces=true -->
<ui:param name="spaceSelection"
value="#{teamController.getSpacesByProcessId(process.uniqueID)}"></ui:param>
<ui:param name="spaceSelection" value="#{teamController.getSpacesByProcessId(process.uniqueID)}"></ui:param>
<c:if test="#{empty spaceSelection}">
<!-- show root spaces only? -->
<c:if
test="#{propertyController.getProperty('search.filter.spaces') eq 'root'}">
<ui:param name="spaceSelection"
value="#{teamController.getRootSpaces()}"></ui:param>
<c:if test="#{propertyController.getProperty('search.filter.spaces') eq 'root'}">
<ui:param name="spaceSelection" value="#{teamController.getRootSpaces()}"></ui:param>
</c:if>
<!-- show all spaces ? -->
<c:if
test="#{propertyController.getProperty('search.filter.spaces') eq 'all'}">
<ui:param name="spaceSelection"
value="#{teamController.getSpaces()}"></ui:param>
<c:if test="#{propertyController.getProperty('search.filter.spaces') eq 'all'}">
<ui:param name="spaceSelection" value="#{teamController.getSpaces()}"></ui:param>
</c:if>
</c:if>

<h:panelGroup rendered="#{! empty spaceSelection}">
<dl>
<dt>#{message['worklist.space']}:</dt>
<dd>
<h:selectOneMenu id="spaceid_selection"
value="#{searchController.searchFilter.item['spaceref']}">
<dd>
<h:selectOneMenu id="spaceid_selection" value="#{searchController.searchFilter.item['spaceref']}">
<f:selectItem itemValue="" itemLabel=" " />

<!-- optional teamController.getSpaces() -->
<c:forEach items="#{spaceSelection}" var="space">
<f:selectItem itemValue="#{space.item['$UniqueID']}"
itemLabel="#{space.item['name']}" />
<f:selectItem itemValue="#{space.item['$UniqueID']}" itemLabel="#{space.item['name']}" />
</c:forEach>
<f:ajax event="change" render="@form"
onevent="updateSearchForm" />
<f:ajax event="change" render="@form" onevent="updateSearchForm" />
</h:selectOneMenu>
</dd>
</dl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
* The SearchController defines also a set of predefined filter properties:
*
* <ul>
* <li>_processRef = holds a reference to a core process entity</li>
* <li>_spaceRef = holds a reference to a core space entity</li>
* <li>_phrase = holds the serach phrase</li>
* <li>processRef = holds a reference to a core process entity</li>
* <li>spaceRef = holds a reference to a core space entity</li>
* <li>phrase = holds the serach phrase</li>
* </ul>
*
*
Expand Down

0 comments on commit 305da4a

Please sign in to comment.