Indeed when using the drag'n drop feature, it is more difficult to manage metadata, but it is a real problem : because you allow multifile upload with drag'drop, you cannot ergonomically ask for metadata values other than the one in the File schema. So your listener may check the size and miime type of the file, but that's all. One solution is to put at a special lifecycle state the document uploaded with the filemanager, for instance "not_completed".

Le 18 oct. 07 à 09:50, Yuri Nadestin a écrit :

You are right, but what if operation has been started through drag and drop.
How do I inject my custom validation into UI layer in this case?

-----Original Message-----
From: Alain Escaffre [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 18, 2007 9:42 AM
To: Yuri Nadestin
Cc: Nuxeo ECM
Subject: Re: [Ecm] How to generate client error message from the event listener?

Hello,
I htink you shouldn't use an update event listener to do basic
validation, you should deal with SEAM and JSF for that, and then
nicely return a Face Message. Some others would say more about
valdation and JSF.



Le 18 oct. 07 à 09:27, Yuri Nadestin a écrit :

Hello,



What is the preferred way to notify user about error discovered in
the Nuxeo event listener or in the custom plugin?



In my case document update listener validates the document contents
and in some cases (document is invalid) should break the operation

and show nice error message to the user.



Throwing ClientException is not a solution. Users don't want to see
stack traces.



Thanks,

Yuri Nadestin

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to