Files
ofbiz-framework/framework/common/webcommon/includes/messages.ftl
T

75 lines
3.1 KiB
Plaintext

<#--
* Copyright (c) 2001-2005 The Open For Business Project - www.ofbiz.org
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*@author David E. Jones (jonesde@ofbiz.org)
*@version $Rev$
-->
<#if requestAttributes.errorMessageList?has_content><#assign errorMessageList=requestAttributes.errorMessageList></#if>
<#if requestAttributes.eventMessageList?has_content><#assign eventMessageList=requestAttributes.eventMessageList></#if>
<#if requestAttributes.serviceValidationException?exists><#assign serviceValidationException = requestAttributes.serviceValidationException></#if>
<#if requestAttributes.uiLabelMap?has_content><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
<#if !errorMessage?has_content>
<#assign errorMessage = requestAttributes._ERROR_MESSAGE_?if_exists>
</#if>
<#if !errorMessageList?has_content>
<#assign errorMessageList = requestAttributes._ERROR_MESSAGE_LIST_?if_exists>
</#if>
<#if !eventMessage?has_content>
<#assign eventMessage = requestAttributes._EVENT_MESSAGE_?if_exists>
</#if>
<#if !eventMessageList?has_content>
<#assign eventMessageList = requestAttributes._EVENT_MESSAGE_LIST_?if_exists>
</#if>
<#-- display the error messages -->
<#if (errorMessage?has_content || errorMessageList?has_content)>
<div class="errorMessage">${uiLabelMap.CommonFollowingErrorsOccurred}:</div><br/>
<ul>
<#if errorMessage?has_content>
<li class="errorMessage">${errorMessage}</li>
</#if>
<#if errorMessageList?has_content>
<#list errorMessageList as errorMsg>
<li class="errorMessage">${errorMsg}</li>
</#list>
</#if>
</ul>
<br/>
</#if>
<#-- display the event messages -->
<#if (eventMessage?has_content || eventMessageList?has_content)>
<div class="eventMessage">${uiLabelMap.CommonFollowingOccurred}:</div><br/>
<ul>
<#if eventMessage?has_content>
<li class="eventMessage">${eventMessage}</li>
</#if>
<#if eventMessageList?has_content>
<#list eventMessageList as eventMsg>
<li class="eventMessage">${eventMsg}</li>
</#list>
</#if>
</ul>
<br/>
</#if>