Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#--
2
/*
3
 * $Id: Action.java 502296 2007-02-01 17:33:39Z niallp $
4
 *
5
 * Licensed to the Apache Software Foundation (ASF) under one
6
 * or more contributor license agreements.  See the NOTICE file
7
 * distributed with this work for additional information
8
 * regarding copyright ownership.  The ASF licenses this file
9
 * to you under the Apache License, Version 2.0 (the
10
 * "License"); you may not use this file except in compliance
11
 * with the License.  You may obtain a copy of the License at
12
 *
13
 *  http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing,
16
 * software distributed under the License is distributed on an
17
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 * KIND, either express or implied.  See the License for the
19
 * specific language governing permissions and limitations
20
 * under the License.
21
 */
22
-->
23
<#if fieldErrors?exists><#t/>
24
<#assign eKeys = fieldErrors.keySet()><#t/>
25
<#assign eKeysSize = eKeys.size()><#t/>
26
<#assign doneStartUlTag=false><#t/>
27
<#assign doneEndUlTag=false><#t/>
28
<#assign haveMatchedErrorField=false><#t/>
29
<#if (fieldErrorFieldNames?size > 0) ><#t/>
30
	<#list fieldErrorFieldNames as fieldErrorFieldName><#t/>
31
		<#list eKeys as eKey><#t/>
32
		<#if (eKey = fieldErrorFieldName)><#t/>
33
			<#assign haveMatchedErrorField=true><#t/>
34
			<#assign eValue = fieldErrors[fieldErrorFieldName]><#t/>
35
			<#if (haveMatchedErrorField && (!doneStartUlTag))><#t/>
36
				<ul>
37
				<#assign doneStartUlTag=true><#t/>
38
			</#if><#t/>
39
			<#list eValue as eEachValue><#t/>
40
				<li><span<#rt/>
41
<#if parameters.cssClass?exists>
42
 class="${parameters.cssClass?html}"<#rt/>
43
<#else>
44
 class="errorMessage"<#rt/>
45
</#if>
46
<#if parameters.cssStyle?exists>
47
 style="${parameters.cssStyle?html}"<#rt/>
48
</#if>
49
>${eEachValue}</span></li>
50
			</#list><#t/>			
51
		</#if><#t/>
52
		</#list><#t/>
53
	</#list><#t/>
54
	<#if (haveMatchedErrorField && (!doneEndUlTag))><#t/>
55
		</ul>
56
		<#assign doneEndUlTag=true><#t/>
57
	</#if><#t/>
58
<#else><#t/>
59
	<#if (eKeysSize > 0)><#t/>
60
		<ul>
61
			<#list eKeys as eKey><#t/>
62
				<#assign eValue = fieldErrors[eKey]><#t/>
63
				<#list eValue as eEachValue><#t/>
64
					<li><span<#rt/>
65
<#if parameters.cssClass?exists>
66
 class="${parameters.cssClass?html}"<#rt/>
67
<#else>
68
 class="errorMessage"<#rt/>
69
</#if>
70
<#if parameters.cssStyle?exists>
71
 style="${parameters.cssStyle?html}"<#rt/>
72
</#if>
73
>${eEachValue}</span></li>
74
				</#list><#t/>
75
			</#list><#t/>
76
		</ul>
77
	</#if><#t/>
78
</#if><#t/>
79
</#if><#t/>