Agenda

Gertakizun 02

Se ha producido un error al procesar la plantilla.
Denied resolving class java.lang.Class by java.lang.Class
1## 
2## Estructura: 
3## 
4## <root available-locales="eu_ES" default-locale="eu_ES"> 
5## 	<dynamic-element dataType="string" indexType="text" localizable="true" name="laburpena" readOnly="false" repeatable="false" required="false" showLabel="true" type="textarea" width="large" /> 
6## 	<dynamic-element dataType="date" fieldNamespace="ddm" indexType="keyword" localizable="true" name="hasieraData" readOnly="false" repeatable="false" required="false" showLabel="true" type="ddm-date" width="large" /> 
7## 	<dynamic-element dataType="date" fieldNamespace="ddm" indexType="keyword" localizable="true" name="amaieraData" readOnly="false" repeatable="false" required="false" showLabel="true" type="ddm-date" width="large"> 
8## 		<dynamic-element dataType="boolean" indexType="keyword" localizable="true" name="erakutsiAmaieraData" readOnly="false" repeatable="false" required="false" showLabel="true" type="checkbox" width="" /> 
9## 	</dynamic-element> 
10## 	<dynamic-element dataType="string" indexType="keyword" localizable="true" multiple="false" name="mota" readOnly="false" repeatable="false" required="false" showLabel="true" type="select" width=""> 
11## 		<dynamic-element name="option7512" type="option" value="normal" /> 
12## 		<dynamic-element name="option7513" type="option" value="excepcion" /> 
13## 	</dynamic-element> 
14## 	<dynamic-element dataType="html" fieldNamespace="ddm" indexType="text" localizable="true" name="edukia" readOnly="false" repeatable="false" required="false" showLabel="true" type="ddm-text-html" width="large" /> 
15## </root> 
16## 
17 
18 
19#set ($JournalArticleLocalService = $serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")) 
20##set ($AssetCategoryLocalService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")) 
21#set ($AssetCategoryService = $serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryService")) 
22#set ($article = $JournalArticleLocalService.getArticle($groupId, $reserved-article-id.data)) 
23#set ($categories = $AssetCategoryService.getCategories("com.liferay.portlet.journal.model.JournalArticle", $article.getResourcePrimKey())) 
24 
25#set ($calClass = $portal.getClass().forName("java.util.GregorianCalendar"))  
26#set ($cal = $calClass.getInstance()) 
27 
28 
29<div class="agenda-detalle $mota.getData()">  
30	<div class="entradilla">$laburpena.getData()</div> 
31	<div class="fecha-categorias">  
32		<div class="fechas"> 
33				#set ($hasieraData_DateObj = $dateUtil.newDate($getterUtil.getLong($hasieraData.getData())))    			    
34				$cal.setTime($hasieraData_DateObj) 
35    			<span class="fecha_wrapper"> 
36    				<span class="dia">$cal.get(5)</span> 
37    				<span class="mes">#mes($cal.get(2))</span> 
38    			</span> 
39				#if($amaieraData.erakutsiAmaieraData.getData()==true) 
40				    #set ($amaieraData_DateObj = $dateUtil.newDate($getterUtil.getLong($amaieraData.getData()))) 
41					$cal.setTime($amaieraData_DateObj) 
42    				<span class="fecha_wrapper">  
43						<span class="dia">$cal.get(5)</span> 
44						<span class="mes">#mes($cal.get(2))</span> 
45    				</span>  
46				#end 
47		</div>  
48 
49		<div class="categorias"> 
50			#set ($first = true) 
51			#foreach( $category in $categories ) 
52				#if ($first==false) | #end 
53				$category.getTitle($locale) 
54				#set ($first = false) 
55			#end 
56		</div> 
57 
58	</div>  
59	<hr>  
60	<div class="desarrollo"> 
61        $edukia.getData() 
62	</div> 
63	<p>&nbsp;</p> 
64	<p>&nbsp;</p> 
65	<hr/> 
66	<p>&nbsp;</p> 
67</div>