1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sec.document.web;
17
18 import java.util.Iterator;
19 import java.util.List;
20
21 import javax.servlet.jsp.JspException;
22 import javax.servlet.jsp.PageContext;
23 import javax.servlet.jsp.tagext.Tag;
24
25 import org.kuali.ole.sys.document.web.renderers.GroupErrorsRenderer;
26
27
28
29
30
31 public class CollectionSecAccountingLineGroupImpl extends SecAccountingLineGroupImpl {
32
33
34
35
36 public CollectionSecAccountingLineGroupImpl() {
37 super();
38 }
39
40
41
42
43
44
45
46 @Override
47 protected void renderErrors(PageContext pageContext, Tag parentTag) throws JspException {
48 renderSecurityMessage(pageContext, parentTag);
49
50 GroupErrorsRenderer errorRenderer = new GroupErrorsRenderer();
51 List errors = errorRenderer.getErrorPropertyList(pageContext);
52 if (errors != null && !errors.isEmpty()) {
53 for (Iterator itr = errors.iterator(); itr.hasNext();) {
54 String error = (String) itr.next();
55 if (error.startsWith(collectionItemPropertyName)) {
56 renderMessages(pageContext, parentTag, error);
57 }
58 }
59 }
60 }
61
62 }