-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF29, 11.2, 2021.0
-
Component/s: Seam / JSF UI
-
Release Notes Summary:The function nx:arrayContains is added to evaluate JSF EL condition on multi-valued properties.
-
Release Notes Description:
-
Tags:
-
Backlog priority:500
-
Team:PLATFORM
-
Sprint:nxplatform 11.1.37, nxplatform #11
-
Story Points:3
Filters can be applied to picture conversions as described in [HOWTO: Contribute Picture Conversions|Transactions and Connections]. When using a condition, it is impossible to test if a String multi-valued property (e.g. dc:subjects) contains a value (e.g. art/paint).
How to reproduce:
- define a new picture conversion and its filter:
<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="filters"> <filter id="my-subject-filter"> <rule grant="true"> <condition>#{ currentDocument.dc.subjects.contains("art/paint") }</condition> </rule> </filter> </extension> <extension point="pictureConversions" target="org.nuxeo.ecm.platform.picture.ImagingComponent" > <pictureConversion chainId="Image.Blob.Resize" default="true" description="Thumbnail size 2" id="Thumbnail2" maxSize="100" order="0" rendition="true"> <filters> <filter-id>my-subject-filter</filter-id> </filters> </pictureConversion> </extension>
- deploy
- create a Picture document and set subjects to Art / Paint
Expected result: picture view Thumbnail size 2 is generated.
Actual result: picture view Thumbnail size 2 is not generated.
I know that JSF EL expression currentDocument.dc.subjects returns an array and method contains cannot be called on it but there is no available way to test if property dc:subjects contains a value.
- is related to
-
NXP-30221 Implement equivalent of NXP-28918 for JSFActionContext - nx:arrayContains* methods
- Resolved
- Is referenced in