Produciuse un erro ao procesar o modelo.
Invocation of method 'format' in  class java.text.SimpleDateFormat threw exception java.lang.IllegalArgumentException: Cannot format given Object as a Date at 20289T_AXENDA_DETAILS[line 15, column 43]
1## 
2## Identificador:	T_AXENDA_DETAILS 
3## 
4 
5#set ($longGroupId = $getterUtil.getLong($groupId)) 
6#set ($calendarLocalService = $serviceLocator.findService("com.liferay.portlet.calendar.service.CalEventLocalService")) 
7#set ($eventId = $getterUtil.getLong($request.get("parameters").get("eventId"), 0)) 
8#set ($classDateFormat = $portal.getClass().forName("java.text.DateFormat")) 
9#set ($dateFormat = $classDateFormat.getDateInstance(0, $locale)) 
10#set ($timeFormat = $classDateFormat.getTimeInstance(3, $locale)) 
11 
12#if($eventId > 0) 
13	#set ($event = $calendarLocalService.getEvent($eventId)) 
14	#set ($place = $event.getExpandoBridge().getAttribute("lugar")) 
15        #set ($formatedDate = $dateFormat.format($event.startDate)) 
16	<span class="axenda_data">${stringUtil.upperCaseFirstLetter($formatedDate)} / ${timeFormat.format($event.startDate)} h</span><br/> 
17	<span class="axenda_evento_titulo"><h2>$event.title</h2></span> 
18	<p class="axenda_evento_descripcion">$event.description</p><br/> 
19	#if($place) 
20			<span class="axenda_evento_lugar">$place</span> 
21	#end 
22	<hr class="axenda_separador" /> 
23#else 
24	#set ($events = $calendarLocalService.getEvents($longGroupId, null,0,10)) 
25	#foreach ($event in $events)    
26		#set ($event = $calendarLocalService.getEvent($eventId)) 
27		#set ($place = $event.getExpandoBridge().getAttribute("lugar")) 
28                #set ($formatedDate = $dateFormat.format($event.startDate)) 
29		<span class="axenda_data">${stringUtil.upperCaseFirstLetter($formatedDate)} / ${timeFormat.format($event.startDate)} h</span><br/> 
30		<span class="axenda_evento_titulo"><h2>$event.title</h2></span> 
31		<p class="axenda_evento_descripcion">$event.description</p><br/> 
32		#if($place) 
33				<span class="axenda_evento_lugar">$place</span> 
34		#end 
35		<hr class="axenda_separador" /> 
36	#end	 
37#end 
Dicionario

Novas da Academia

Subscríbete