As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
I cannot retrieve the application context when my file importer is launched through the drag and drop ... and thus cannot print my message through FacesMessages.
What is the way to give some feedback to the user, then?
Tx
Patrick
Hi Patco,
The importer itself is launched via an Automation chain, triggered during the drag'n'drop:
<extension point="chains" target="org.nuxeo.ecm.core.operation.OperationServiceComponent"> <chain id="FileManager.ImportWithMetaData"> <operation id="FileManager.Import"> <param name="overwite" type="boolean">true</param> </operation> <operation id="Document.Update"> <param name="properties" type="properties">expr:Context.get("docMetaData")</param> </operation> </chain> </extension>
(contributed here)
I guess the best thing to do would be to override this chain, to append a call to a "Seam.AddInfoMessage" or "Seam.AddMessage" operation. If your message is complex (= template based) I think you'll have to create your own operation based on one of these, from which you can have full access to the Seam context.