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

Reply via email to