Erwan,
Here is code snipped from checkoutProcess.js file in ecommerce component.
// Check server side error
function getServerError(data) {
    var serverErrorHash = [];
    var serverError = "";
    if (data._ERROR_MESSAGE_LIST_ != undefined) {
        serverErrorHash = data._ERROR_MESSAGE_LIST_;
        serverErrorHash.each(function(error) {
            serverError += error.message;
        });
    }
    if (data._ERROR_MESSAGE_ != undefined) {
        serverError = data._ERROR_MESSAGE_;
    }
    return serverError;
}


Thanks and Regards
Anil Patel
HotWax Media Inc
Find us on the web at www.hotwaxmedia.com or Google Keyword "ofbiz"

On Dec 10, 2009, at 11:43 AM, Erwan de FERRIERES wrote:

> Hi all,
> 
> How is handled the error messages after a jsonservice event type ? Here is a 
> concrete example :
> 
> Go to Ajax examples, and create an example. No problem, it's working. But if 
> in the example/../controller.xml, line 78, you replace the name of the 
> service invoked for the example creation, then, when creating an example, 
> nothing is done. That's normal, but there is no error message on the screen.
> 
> The only indicator we have is in the log :
> 2009-12-10 17:34:03,343 (http-0.0.0.0-8443-1) [ 
> RequestHandler.java:412:ERROR] Request createExampleAjax caused an error with 
> the following message: Erreur lors de l'appel de l'événement: 
> org.ofbiz.webapp.event.EventHandlerException: Problems getting the service 
> model (Cannot locate service by name (eventWhichDoesntExist))
> 
> But there is nothing displayed for the user. Does anyone knows how to display 
> an error ?
> 
> Thanks,
> 
> -- 
> Erwan de FERRIERES
> www.nereide.biz

Reply via email to