[ 
https://issues.apache.org/jira/browse/OFBIZ-10587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17028184#comment-17028184
 ] 

Jacques Le Roux commented on OFBIZ-10587:
-----------------------------------------

Michael,

I'm sure you are aware, but in case as it's not obvious (below I use * for any 
char);
{noformat}
*_MESSAGE_*{noformat}
(mostly _ERROR_MESSAGE_ , ERROR_MESSAGE_LIST and ModelService.ERROR_MESSAGE_* 
but also EVENT) are used in conditional expressions (not only Java) like
{noformat}
if (*_MESSAGE_*) { {{noformat}
I don't think adding WARNING_MESSAGE would have anĀ  impact. So just telling, in 
case it could be used in such and other expressions than conditional.

I just used the same in OFBIZ-11329 for setUserTimeZone.js. That's why I tell 
you that. There is not need to worry about WARNING there, again just telling.

> _WARNING_MESSAGE_
> -----------------
>
>                 Key: OFBIZ-10587
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10587
>             Project: OFBiz
>          Issue Type: Wish
>          Components: ALL COMPONENTS
>            Reporter: Niklas Fallik
>            Assignee: Michael Brohl
>            Priority: Major
>
> Hi there,
> I am looking for a way to display warning messages. We are using 
> EVENT_MESSAGE and ERROR_MESSAGE which we can pass to the frontend to display 
> to the user, but it turned out that it would be nice to have a type for 
> warnings like WARNING_MESSAGE.
> I figured out that the java classes ServiceEventHandler and 
> ScriptEventHandler deal with those message types.
> I really would appreciate if anyone already had a solution for this.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to