Fel uppstod under bearbetning av mallen.
Denied resolving class org.apache.velocity.util.ArrayListWrapper by org.apache
1#macro(insertProjectIcon $iconClass) 
2    <div class="project-icon show-phone"> 
3        <span class="$iconClass"></span> 
4    </div> 
5#end 
6 
7#if (!$entries.isEmpty()) 
8    #set($layoutLocalService = $serviceLocator.findService("com.liferay.portal.service.LayoutLocalService")) 
9    #set($railProjectCategoryId = $getterUtil.getLong($propsUtil.get("project.list.rail.category.id"))) 
10    #set($roadProjectCategoryId = $getterUtil.getLong($propsUtil.get("project.list.road.category.id"))) 
11    #set($waterProjectCategoryId = $getterUtil.getLong($propsUtil.get("project.list.water.category.id"))) 
12 
13 
14    #set($urlField = "mainPage") 
15    #set($headingField = "name") 
16    #set($imageField = "thumbnailImage") 
17 
18    #set($backgroundColor = "1") 
19    #set($rowMaxItems = 4) 
20 
21    #set($baseUrl = "") 
22    #if($locale != "fi_FI") 
23        #set($baseUrl = "/" + "web" + $themeDisplay.getScopeGroup().getFriendlyURL()) 
24    #end 
25 
26    <div class="project-list"> 
27        #if("$!assetPublisherTitle" != "") 
28            <div class="background-color-1 custom-portlet-heading"> 
29                $assetPublisherTitle 
30            </div> 
31        #end 
32 
33        #set($entriesSize = $entries.size()) 
34        #foreach ($curEntry in $entries) 
35            #set($rowStart = $velocityCount % $rowMaxItems == 1) 
36            #set($rowEnd = ($velocityCount == $entriesSize || $velocityCount % $rowMaxItems == 0)) 
37            #set($article = $curEntry.getAssetRenderer().getArticle()) 
38            #set($entryXml = $saxReaderUtil.read($article.getContent())) 
39 
40            #if($rowStart) 
41                <div class="background-color-$backgroundColor"> 
42                <div class="inner-wrapper"> 
43                <div class="row-fluid"> 
44            #end 
45 
46 
47            #set($urlArray = $!entryXml.valueOf("//dynamic-element[@name='${urlField}']/dynamic-content/text()").split("@")) 
48            #if($urlArray.size() >= 3) 
49                #set($layoutId = $getterUtil.getLong($urlArray.get(0))) 
50                #set($isPrivate = $urlArray.get(1) == "private") 
51                #set($groupId = $getterUtil.getLong($urlArray.get(2))) 
52            #end 
53 
54            <div class="span3"> 
55                <a class="small-call-to-action-card" href="${baseUrl}$!layoutLocalService.getLayout($groupId, $isPrivate, $layoutId).getFriendlyURL($locale)"> 
56                    <img class="media-circle small hide-phone" src="$!entryXml.valueOf("//dynamic-element[@name='${imageField}']/dynamic-content/text()")" alt=""></img> 
57                    #foreach ($category in $curEntry.getCategories()) 
58                        #set($categoryId = $category.getCategoryId()) 
59                        #if($roadProjectCategoryId == $categoryId) 
60                            #insertProjectIcon("glyphicons glyphicons-road") 
61                        #end 
62 
63                        #if($railProjectCategoryId == $categoryId) 
64                            #insertProjectIcon("glyphicons glyphicons-train") 
65                        #end 
66 
67                        #if($waterProjectCategoryId == $categoryId) 
68                            #insertProjectIcon("glyphicons glyphicons-buoy") 
69                        #end 
70                    #end 
71                    <div class="project-name"> 
72                        <div class="text-wrap"> 
73                            $!entryXml.valueOf("//dynamic-element[@name='${headingField}']/dynamic-content/text()") 
74                        </div> 
75                    </div> 
76                </a> 
77            </div> 
78 
79            #if($rowEnd) 
80                #if($backgroundColor == "2") 
81                    #set($backgroundColor = "1") 
82                #else 
83                    #set($backgroundColor = "2") 
84                #end 
85 
86                </div> 
87                </div> 
88                </div> 
89            #end 
90        #end 
91        #if($addThisEnabled == true) 
92            <div class="addthis background-color-$backgroundColor"> 
93                <div class="inner-wrapper"> 
94                    #parse ("livi-theme_SERVLET_CONTEXT_/templates/shared/addthis.vm") 
95                </div> 
96            </div> 
97        #end 
98    </div> 
99#end