-
Type: Sub-task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8-SNAPSHOT
-
Fix Version/s: 5.8
-
Component/s: Seam / JSF UI
-
Tags:
-
Sprint:Sprint 1_old
The following templates
- select2_widget_template.xhtml
- select2_multiple_widget_template.xhtml
should verify that the selected documents can be seen in view mode. If not, an appropriate message should be displayed like in documentSuggestion.
<h:outputText rendered="#{not empty field}"> <nxu:set var="canSee" value="#{docSuggestionActions.getDocumentExistsAndIsVisibleWithId(field)}"> <h:outputText rendered="#{canSee}"> <nxu:set var="doc" value="#{docSuggestionActions.getDocumentWithId(field)}"> <h:outputText value="#{nxd:titleOrId(doc)}" /> </nxu:set> </h:outputText> <h:outputText rendered="#{not canSee}" value="#{messages['label.documentSuggestion.docNotFoundOrNotVisible']} (#{field})" /> </nxu:set> </h:outputText>