I have an Action Seam Bean and a list of the currently selected documents called selectedDocs
My button cycles the list and changes the icon of the documents in this way:
</code></p><pre><code>
for (DocumentModel selectedDoc : selectedDocs) {
selectedDoc.setPropertyValue("icon", "icons/archive.png");
}
where archive.png is an icon stored in the nuxeo.war
Now, the icon changes, but if i logout or create a new file in the same workspace it disappears and it's replaced by the default icon.
I tried calling documentManager.save(); (documentManger is the CoreSession) hoping that it would have made the icon change permanent, but it doesn't change this behaviour.