Hello,
I've created a new type of document in Studio to store a set of pictures. To store these pictures I simply create relations between my documents and the pictures. I'd like to display the thumbnails of the pictures referenced but I don't know how to pass the variable.
Here's what I tried :
<h:dataTable var="statement"
value="#{currentDocumentIncomingRelations}"
styleClass="dataOutput"
rowClasses="dataRowEven, dataRowOdd"
columnClasses="relationPredicateColumn, relationObjectColumn, relationCommentColumn, relationCommentColumn, relationCommentColumn, relationActionsColumn">
<h:column>
<f:facet name="thumbnail">
<h:outputText value="image" />
</f:facet>
<h:graphicImage
value="#{nxd:fileUrl('downloadPicture', statement , 'Thumbnail:content', currentDocument.dublincore.modified)}" />
</h:column>
Of course I get an error
Cannot convert org.nuxeo.ecm.platform.relations.web.StatementInfoImpl@a23ec4 of type class org.nuxeo.ecm.platform.relations.web.StatementInfoImpl to interface org.nuxeo.ecm.core.api.DocumentModel
Do you know how I could display the thumbnails of the pictures relations ?
Thank you
Fabrice