[
http://jira.nuxeo.org/browse/NXP-3442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52186#action_52186
]
Anahide Tchertchian commented on NXP-3442:
------------------------------------------
seems unmodifiable collection is not suitable for ui:
see document_process.xhtml:
<h:selectOneRadio id="lifeCycleDestinationStateTransition"
value="#{lifecycleEndState}" required="true"
layout="pageDirection">
<c:forEach var="lcs"
items="#{documentManager.getAllowedStateTransitions(currentDocument.getRef())}">
<f:selectItem itemLabel="#{messages[lcs]}" itemValue="#{lcs}" />
</c:forEach>
<f:selectItem
itemLabel="#{messages['label.review.lifecycle.noChange']}"
itemValue="null" />
</h:selectOneRadio>
throws:
[NuxeoExceptionHandler] javax.servlet.ServletException:
/incl/tabs/document_process.xhtml @51,81 itemValue="#{lcs}": Property '0' not
found on type java.util.Collections$UnmodifiableCollection
> Lifecycle allowed state transitions shouldn't be mutable
> --------------------------------------------------------
>
> Key: NXP-3442
> URL: http://jira.nuxeo.org/browse/NXP-3442
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.2 M1
> Reporter: Florent Guillaume
> Assignee: Florent Guillaume
> Fix For: 5.2 GA
>
>
> CoreSession.getAllowedStateTransitions, through
> LifeCycleStateImpl.getAllowedStateTransitions, returns the mutable collection
> held by the lifecycle service.
> This shouldn't be a mutable collection, as future callers (among which
> LifeCycleServiceImpl.followTransition) would get a mutated value.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets