You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by varun bhansaly <vb...@gmail.com> on 2010/07/09 18:41:35 UTC

Multiple error messages from service

Hi,
I am working on a service which might have to send back multiple error
messages.
Whats the best to achieve the same so that each error message is displayed
on a separate line ?


-- 
Regards,
Varun Bhansaly

Re: Multiple error messages from service

Posted by varun bhansaly <vb...@gmail.com>.
ServiceUtil.returnError(listOfMessages) is a good solution.

On Fri, Jul 9, 2010 at 10:28 PM, Adrian Crum <ad...@hlmksw.com> wrote:

> There are two lists that can be returned from a service - a regular
> (non-error) message list and an error message list. Take a look at some the
> existing services for examples.
>
> -Adrian
>
>
> On 7/9/2010 9:54 AM, varun bhansaly wrote:
>
>> Thanks Adrian, is there any existing precedent as to how to send back
>> multiple messages from a service ?
>>
>> On Fri, Jul 9, 2010 at 10:18 PM, Adrian Crum<ad...@hlmksw.com>  wrote:
>>
>>  The default behavior is that each message is on a separate line - each
>>> message is inside a<p>  element.
>>>
>>> -Adrian
>>>
>>>
>>> On 7/9/2010 9:41 AM, varun bhansaly wrote:
>>>
>>>  Hi,
>>>> I am working on a service which might have to send back multiple error
>>>> messages.
>>>> Whats the best to achieve the same so that each error message is
>>>> displayed
>>>> on a separate line ?
>>>>
>>>>
>>>>
>>>>
>>
>>


-- 
Regards,
Varun Bhansaly

Re: Multiple error messages from service

Posted by Adrian Crum <ad...@hlmksw.com>.
There are two lists that can be returned from a service - a regular 
(non-error) message list and an error message list. Take a look at some 
the existing services for examples.

-Adrian

On 7/9/2010 9:54 AM, varun bhansaly wrote:
> Thanks Adrian, is there any existing precedent as to how to send back
> multiple messages from a service ?
>
> On Fri, Jul 9, 2010 at 10:18 PM, Adrian Crum<ad...@hlmksw.com>  wrote:
>
>> The default behavior is that each message is on a separate line - each
>> message is inside a<p>  element.
>>
>> -Adrian
>>
>>
>> On 7/9/2010 9:41 AM, varun bhansaly wrote:
>>
>>> Hi,
>>> I am working on a service which might have to send back multiple error
>>> messages.
>>> Whats the best to achieve the same so that each error message is displayed
>>> on a separate line ?
>>>
>>>
>>>
>
>

Re: Multiple error messages from service

Posted by varun bhansaly <vb...@gmail.com>.
Thanks Adrian, is there any existing precedent as to how to send back
multiple messages from a service ?

On Fri, Jul 9, 2010 at 10:18 PM, Adrian Crum <ad...@hlmksw.com> wrote:

> The default behavior is that each message is on a separate line - each
> message is inside a <p> element.
>
> -Adrian
>
>
> On 7/9/2010 9:41 AM, varun bhansaly wrote:
>
>> Hi,
>> I am working on a service which might have to send back multiple error
>> messages.
>> Whats the best to achieve the same so that each error message is displayed
>> on a separate line ?
>>
>>
>>


-- 
Regards,
Varun Bhansaly

Re: Multiple error messages from service

Posted by Adrian Crum <ad...@hlmksw.com>.
The default behavior is that each message is on a separate line - each 
message is inside a <p> element.

-Adrian

On 7/9/2010 9:41 AM, varun bhansaly wrote:
> Hi,
> I am working on a service which might have to send back multiple error
> messages.
> Whats the best to achieve the same so that each error message is displayed
> on a separate line ?
>
>