1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.ole.sys.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 public class CollectionAccountingLineGroupImpl extends DefaultAccountingLineGroupImpl {
31
32
33
34
35
36
37
38 @Override
39 protected void renderErrors(PageContext pageContext, Tag parentTag) throws JspException {
40 String propName = getCollectionPropertyName();
41 GroupErrorsRenderer errorRenderer = new GroupErrorsRenderer();
42 List errors = errorRenderer.getErrorPropertyList(pageContext);
43 if ( errors != null && !errors.isEmpty()) {
44 for (Iterator itr = errors.iterator(); itr.hasNext();) {
45 String error = (String) itr.next();
46 if (error.startsWith(propName)) {
47 errorRenderer.setErrorKeyMatch(error);
48 errorRenderer.setColSpan(getWidthInCells());
49 errorRenderer.render(pageContext, parentTag);
50
51 moveListToMap(errorRenderer.getErrorsRendered(), getDisplayedErrors());
52 moveListToMap(errorRenderer.getWarningsRendered(), getDisplayedWarnings());
53 moveListToMap(errorRenderer.getInfoRendered(), getDisplayedInfo());
54
55 errorRenderer.clear();
56 }
57 }
58 }
59 }
60 }