40 lines
No EOL
1.7 KiB
HTML
40 lines
No EOL
1.7 KiB
HTML
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
|
|
xmlns:f="http://xmlns.jcp.org/jsf/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
|
|
xmlns:h="http://xmlns.jcp.org/jsf/html">
|
|
|
|
<ui:remove>
|
|
<!-- Selection by space
|
|
|
|
USAGE: options=default-selection;
|
|
pre select the current users default section (first section the user is member of)
|
|
|
|
options=byprocess;
|
|
only sections assigned to the current process are displayed.
|
|
|
|
-->
|
|
</ui:remove>
|
|
|
|
<f:subview id="spacerefinput-view">
|
|
<ui:param name="default_selection" value="#{options.indexOf('default-selection') ge 0}"></ui:param>
|
|
<ui:param name="space_ref"
|
|
value="#{default_selection ? spaceRefFormController.setDefaultSpace(workflowController.workitem,options):''}" />
|
|
<!-- (DO NOT REMOVE) default selection = #{space_ref} -->
|
|
<ui:fragment rendered="#{!readonly}">
|
|
<h:selectOneMenu style="" required="#{empty required?false:required}" noSelectionOption="true"
|
|
value="#{workflowController.workitem.item['space.ref']}">
|
|
<f:selectItem itemLabel=" - " itemValue="-" ></f:selectItem>
|
|
<c:forEach items="#{spaceRefFormController.getSpaces(workflowController.workitem, options)}"
|
|
var="space">
|
|
<f:selectItem itemLabel="#{space.item['name']}" itemValue="#{space.item['$UniqueID']}">
|
|
</f:selectItem>
|
|
</c:forEach>
|
|
</h:selectOneMenu>
|
|
</ui:fragment>
|
|
<ui:fragment rendered="#{readonly}">
|
|
<h:outputText rendered="#{! empty workitem.item['space.parent.name']}"
|
|
value="#{workflowController.workitem.item['space.parent.name']} ⇒ "></h:outputText>
|
|
<h:outputText value="#{workflowController.workitem.item['space.name']}"></h:outputText>
|
|
</ui:fragment>
|
|
</f:subview>
|
|
|
|
</ui:composition> |