Author: jleroux
Date: Wed Apr 22 22:29:29 2009
New Revision: 767694
URL:
http://svn.apache.org/viewvc?rev=767694&view=revLog:
Allow new lines, and more, in error and event messages
Modified:
ofbiz/trunk/framework/common/webcommon/includes/messages.ftl
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java
Modified: ofbiz/trunk/framework/common/webcommon/includes/messages.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/messages.ftl?rev=767694&r1=767693&r2=767694&view=diff==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/messages.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/messages.ftl Wed Apr 22 22:29:29 2009
@@ -40,11 +40,11 @@
<div class="content-messages errorMessage">
<p>${uiLabelMap.CommonFollowingErrorsOccurred}:</p>
<#if errorMessage?has_content>
- <p>${errorMessage}</p>
+ <p>${StringUtil.wrapString(errorMessage)}</p>
</#if>
<#if errorMessageList?has_content>
<#list errorMessageList as errorMsg>
- <p>${errorMsg}</p>
+ <p>${StringUtil.wrapString(errorMsg)}</p>
</#list>
</#if>
</div>
@@ -55,11 +55,11 @@
<div class="content-messages eventMessage">
<p>${uiLabelMap.CommonFollowingOccurred}:</p>
<#if eventMessage?has_content>
- <p>${eventMessage}</p>
+ <p>${StringUtil.wrapString(eventMessage)}</p>
</#if>
<#if eventMessageList?has_content>
<#list eventMessageList as eventMsg>
- <p>${eventMsg}</p>
+ <p>${StringUtil.wrapString(eventMsg)}</p>
</#list>
</#if>
</div>
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java?rev=767694&r1=767693&r2=767694&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/event/ServiceEventHandler.java Wed Apr 22 22:29:29 2009
@@ -403,7 +403,7 @@
+ "\n(check before if a sub-task for this error does not exist)."
+ "\nIf you are not sure how to create a Jira issue "
+ "please have a look before at
http://docs.ofbiz.org/x/r."
- + "\nThank you in advance for your help.";
+ + "\n\nThank you in advance for your help.";
Debug.logError("=============== " + errMsg + "; In session [" + session.getId() + "]; Note that this can be changed using the service.http.parameters.require.encrypted property in the url.properties file", module);
// the default here is true, so anything but N/n is true