Page 1 of 1

Customize Alert

Posted: Tue Sep 03, 2013 6:15 am
by ktalati
Hello,

I am implementing Server side Validation on Admin side.

So if validation fails, i am throwing service exception with custom message like "Your email address already exists !!!".

But on admin side is shows message like :

//EX[2,1,["com.gwtincubator.security.exception.AccessDeniedException/4287773925","//EX[2,1,[\"org.broadleafcommerce.common.exception.ServiceException/1744595097\",\"EX1001||Email Address already exists||EX1001\"],0,7]"],0,7]


I want to display only message.

I am using Broadleaf Version : 2.3

Please please help me.

thanks in advance.

Regards,
Kishan

Re: Customize Alert

Posted: Thu Sep 12, 2013 12:27 am
by ktalati
No one had implemented this kind of functionality ??

Please Please help me !!!!

Thanks & Regards,
Kishan

Re: Customize Alert

Posted: Thu Sep 12, 2013 2:20 pm
by denis
Hi,

Take a peek at this class there is an example : https://github.com/BroadleafCommerce/Br ... ndler.java

Code: Select all

if (customerService.readCustomerByUsername(adminInstance.getUsername()) != null) {
                Entity error = new Entity();
                error.setValidationFailure(true);
                error.addValidationError("username", "nonUniqueUsernameError");
                return error;
            }

Re: Customize Alert

Posted: Fri Sep 13, 2013 4:59 am
by ktalati
Thank you Denis, The issue is resolved now.

Thanks for your comments.

Regards,
Kishan