Cursus aanbod

Er trad een fout op tijdens de verwerking van de sjabloon.
Multiple compatible overloaded variations were found with the same priority.
The FTL type of the argument values were: Null.
The Java type of the argument values were: Null.
The matching overload was searched among these members:
    static com.liferay.portal.kernel.util.Validator.isNotNull(Long),
    static com.liferay.portal.kernel.util.Validator.isNotNull(String),
    static com.liferay.portal.kernel.util.Validator.isNotNull(Object)

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if validatorUtil.isNotNull(selectedD...  [in template "10155#10193#ACADEMY-ACTIVITY-SUBSCRIPTION-FORM" at line 172, column 33]
----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
2<#assign httpServletRequest = serviceContext.getRequest()> 
3<#assign PortalUtil = staticUtil["com.liferay.portal.kernel.util.PortalUtil"] /> 
4<#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleService")>  
5<#assign validatorUtil = staticUtil["com.liferay.portal.kernel.util.Validator"] /> 
6<#setting locale = "nl_NL"> 
7<#setting date_format="dd MMMM yyyy"> 
8 
9<#assign aCLS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
10<#assign aVLS = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
11<#assign HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] /> 
12 
13<#assign jLS = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")> 
14<#assign activiteittitel="" > 
15<#assign placeCounter = 0 /> 
16<#assign topicCounter = 0 /> 
17<#assign dateCounter = 0 /> 
18<#attempt> 
19   <#if (httpServletRequest.getParameter("activiteittitel")??) > 
20	    <#assign activiteittitel = httpServletRequest.getParameter("activiteittitel")> 
21		<#assign placeCounter = httpServletRequest.getParameter("location")?number> 
22		<#assign topicCounter = httpServletRequest.getParameter("event")?number> 
23		<#assign dateCounter = httpServletRequest.getParameter("timeslot")> 
24   </#if> 
25<#recover> 
26    <#assign activiteittitel =''/> 
27</#attempt> 
28<#assign activiteittitel=HtmlUtil.escape(activiteittitel)> 
29 
30<#if validatorUtil.isNotNull(activiteittitel)> 
31 
32	<#assign journalArticle = jLS.getArticleByUrlTitle(groupId,activiteittitel)> 
33	<#assign filterVocabNamesForTitle = "Contactvorm"> 
34	<#assign vestigingVocabName = "Vestiging"> 
35	<#assign curArticleCategories = aCLS.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey())> 
36	<#assign type = ""> 
37	<#list curArticleCategories as category> 
38			<#assign vocab = aVLS.getVocabulary(category.getVocabularyId()) >       
39		   <#if (vocab.getName() == filterVocabNamesForTitle) > 
40				<#if validatorUtil.isNotNull(type)> 
41					<#assign type =  type+","> 
42				</#if> 
43				<#assign type = type +" "+ category.getTitle(locale) > 
44		   </#if> 
45	</#list> 
46 
47 
48 
49<div class="agenda-subscription"> 
50	<h2 class="portlet-title "> 
51		<span class="portlet-title-text"><@liferay.language key='Aanmelden voor een activiteit' /></span> 
52	</h2> 
53	<div class="pg-content agenda-subscription-data"> 
54		<div class="detail-content">	 
55			<h2 class="title">${journalArticle.getTitle(locale)}</h2> 
56			<div class="agenda-meta-info"> 
57				<#assign content = journalArticle.getContent()> 
58				<#assign doc = saxReaderUtil.read(content)>	 
59				 
60				<#assign duration = ""> 
61				<#assign xPathQuery = "/root/dynamic-element[@name='duration']/dynamic-content" > 
62				<#assign duration = doc.selectSingleNode(xPathQuery)> 
63				 
64				<#assign street = "" > 
65				<#assign houseNumber = "" > 
66				<#assign zipcode = "" > 
67				<#assign city = "" > 
68				<#assign locationComment = "" > 
69				 
70				<#assign xPathQuery = "/root/dynamic-element[@name='place']" > 
71				<#assign placeList = doc.selectNodes(xPathQuery)> 
72				<#assign tempPlaceCounter = 0 /> 
73				 
74				<#list placeList as place> 
75					<#assign tempPlaceCounter = tempPlaceCounter + 1 /> 
76					<#if (tempPlaceCounter == placeCounter) > 
77						<#assign selectedPlace = place/> 
78						 
79						<#assign placeXML = saxReaderUtil.read(selectedPlace.asXML()) /> 
80						 
81						<#assign street = placeXML.selectSingleNode("/dynamic-element/dynamic-element[@name='street']/dynamic-content") > 
82						<#assign houseNumber = placeXML.selectSingleNode("/dynamic-element/dynamic-element[@name='housenumber']/dynamic-content")> 
83						<#assign zipcode = placeXML.selectSingleNode("/dynamic-element/dynamic-element[@name='postcode']/dynamic-content")> 
84						<#assign city = placeXML.selectSingleNode("/dynamic-element/dynamic-content")> 
85						<#assign locationComment = placeXML.selectSingleNode("/dynamic-element/dynamic-element[@name='locationComment']/dynamic-content")> 
86						 
87						<#assign tempTopicCounter = 0 /> 
88						<#assign topicsList = placeXML.selectNodes("/dynamic-element/dynamic-element[@name='topic']") /> 
89						 
90						<#list topicsList as topic> 
91							<#assign tempTopicCounter = tempTopicCounter + 1 /> 
92							<#if (tempTopicCounter == topicCounter) > 
93								<#assign selectedTopic = topic /> 
94								<#assign topicXML = saxReaderUtil.read(selectedTopic.asXML()) /> 
95								<#assign topicName = topicXML.selectSingleNode("/dynamic-element/dynamic-content") /> 
96								<#assign topicName = topicName.getText() /> 
97								 
98								<#assign dateList = topicXML.selectNodes("/dynamic-element/dynamic-element[@name='dateFrom']") /> 
99								 
100									<#if (dateCounter == "all") > 
101										<#assign sortedDateList = [] /> 
102										<#assign selectedDate = "" /> 
103										<#list dateList as date> 
104											<#setting date_format="dd MMMM yyyy"> 
105											<#assign dateXML = saxReaderUtil.read(date.asXML()) /> 
106		                            		<#assign activityDate = dateXML.selectSingleNode("/dynamic-element/dynamic-content") /> 
107		                            		<#assign activityDate = activityDate.getText() /> 
108		                            		<#if (activityDate!='') > 
109		                            			<#assign activityDate = activityDate?date("yyyy-MM-dd")/> 
110												<#assign activityDate = activityDate?string["dd-MM-yyyy"]/> 
111			                                	<#--<#assign activityDate = activityDate?datetime("dd-MM-yyyy")?date>--> 
112			                                	 
113			                                	<#assign startTime = dateXML.selectSingleNode("/dynamic-element/dynamic-element[@name='van']/dynamic-content") /> 
114			                                	<#assign endTime = dateXML.selectSingleNode("/dynamic-element/dynamic-element[@name='tot']/dynamic-content") /> 
115			                                	 
116			                                	<#assign startTime = startTime.getText()/> 
117                            					<#assign endTime = endTime.getText()/> 
118                            					 
119                            					<#assign hourMinute = startTime?split(":") /> 
120                            					<#assign hour = hourMinute[0] /> 
121                            					<#assign minute = hourMinute[1] /> 
122                        						<#assign dateTime = activityDate + " " + hour + ":" + minute /> 
123												<#assign timings = startTime + " - " + endTime/> 
124	                                					 
125                        						<#if (dateTime?datetime("dd-MM-yyyy HH:mm")?datetime > .now?datetime) > 
126				                                	<#assign sortedDateList=sortedDateList+[{"date":activityDate, "time":timings} ]/> 
127				                                </#if> 
128			                                </#if> 
129		                                </#list> 
130		                                <#list sortedDateList?sort_by("date") as i> 
131		                                	<#assign selectedDate = selectedDate + i.date + ", " + i.time + " uur <br/>" /> 
132		                                </#list> 
133									<#else> 
134										<#assign tempDateCounter = 0 /> 
135										<#list dateList as date>  
136											<#assign dateCounter = dateCounter?number /> 
137											<#assign tempDateCounter = tempDateCounter + 1 /> 
138											<#if (tempDateCounter == dateCounter) > 
139												<#assign selectedDate = date /> 
140												<#setting date_format="dd MMMM yyyy"> 
141												<#assign dateXML = saxReaderUtil.read(selectedDate.asXML()) /> 
142		                            			<#assign selectedDate = dateXML.selectSingleNode("/dynamic-element/dynamic-content") /> 
143		                            			<#assign selectedDate = selectedDate.getText() /> 
144		                            			 
145		                            			<#if (selectedDate!='') > 
146			                            			<#assign selectedDate = selectedDate?date("yyyy-MM-dd")/> 
147													<#assign selectedDate = selectedDate?string["dd-MM-yyyy"]/> 
148				                                	<#assign selectedDate = selectedDate?datetime("dd-MM-yyyy")?date> 
149				                                	 
150				                                	<#assign startTime = dateXML.selectSingleNode("/dynamic-element/dynamic-element[@name='van']/dynamic-content") /> 
151				                                	<#assign startTime = startTime.getText()/> 
152				                                	 
153				                                	<#assign endTime = dateXML.selectSingleNode("/dynamic-element/dynamic-element[@name='tot']/dynamic-content") /> 
154	                            					<#assign endTime = endTime.getText()/> 
155	                            					<#assign timings = startTime + " - " + endTime/> 
156	                            					 
157	                            					<#assign hourMinute = startTime?split(":") /> 
158	                            					<#assign hour = hourMinute[0] /> 
159	                            					<#assign minute = hourMinute[1] /> 
160	                        						<#assign selectedDate = selectedDate + ", " + timings + " uur"> 
161                        						</#if> 
162			                                	<#break> 
163			                                </#if> 
164		                                </#list> 
165									</#if> 
166							</#if> 
167						</#list> 
168						<#break>	 
169					</#if> 
170				</#list> 
171				 
172				<#if validatorUtil.isNotNull(selectedDate)> 
173						<dl class="agenda-meta-fields"> 
174							<dt><@liferay.language key='Datums' /></dt> 
175							<dd class="date-right-block">${selectedDate}</dd> 
176						</dl> 
177				<#else> 
178						<dl class="agenda-meta-fields"> 
179							<dt><@liferay.language key='Datum' /> </dt> 
180							<dd class="date-right-block"><@liferay.language key='Datum volgt later' /></dd> 
181						</dl>			 
182				</#if> 
183				 
184				<#if validatorUtil.isNotNull(duration)> 
185					<dl class="agenda-meta-fields"> 
186						<dt><@liferay.language key='Onderwerp' /> </dt> 
187						<dd class="date-right-block">${topicName}</dd> 
188					</dl> 
189				</#if> 
190				<#if validatorUtil.isNotNull(duration)> 
191					<dl class="agenda-meta-fields"> 
192						<dt><@liferay.language key='Duur' /> </dt> 
193						<dd class="date-right-block">${duration.getText()}</dd> 
194					</dl> 
195				</#if> 
196				<#if validatorUtil.isNotNull(type)> 
197					<dl class="agenda-meta-fields"> 
198						<dt ><@liferay.language key='Type' /> </dt> 
199						<dd class="date-right-block">${type}</dd> 
200					</dl> 
201				</#if> 
202				 
203				<#if validatorUtil.isNotNull(street.getText())> 
204							<dl class="agenda-meta-fields"> 
205								<dt><@liferay.language key='Adres' /> </dt> 
206								<dd class="date-right-block">${street.getText()} ${houseNumber.getText()}, 
207								${zipcode.getText()}, ${city.getText()}<#if validatorUtil.isNotNull(locationComment.getText())>, ${locationComment.getText()}</#if> </dd> 
208							</dl> 
209				</#if>  
210				 
211				<#assign xPathQuery = "/root/dynamic-element[@name='cost']/dynamic-content" > 
212				<#assign cost = doc.selectSingleNode(xPathQuery)> 
213				 
214				<#if validatorUtil.isNotNull(cost.getText())> 
215					<dl class="agenda-meta-fields"> 
216						<dt><@liferay.language key='Kosten' /> </dt> 
217						<dd class="date-right-block">${cost.getText()}</dd> 
218					</dl> 
219				</#if> 
220 
221			</div> 
222		 
223		</div> 
224	</div> 
225</div> 
226</#if> 

Formulier

Indigo Aanmelden voor cursus