Se ha producido un error al procesar la plantilla.
Java method "com.liferay.asset.kernel.model.BaseDDMFormValuesReader.getDDMFormFieldValues(String)" threw an exception when invoked on com.liferay.journal.web.internal.asset.JournalArticleDDMFormValuesReader object "com.liferay.journal.web.internal.asset.JournalArticleDDMFormValuesReader@7d1afb48"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: booleanFields = ddmFormValuesReader.g...  [in template "20116#20152#73917997" at line 87, column 13]
----
1<#setting time_zone="Europe/Madrid"> 
2<#setting date_format="yyyy-MM-dd HH:mm"> 
3<#setting locale="es_ES"> 
4<#assign actualDate =.now?date?iso_utc> 
5<#assign datenow = .now?date?iso_utc +" "+ .now?time?iso_local_nz> 
6<#assign dStrange = datenow?datetime("yyyy-MM-dd HH:mm")?date>  
7 
8<#assign cookieMunicipalityNameValue = ""> 
9<#assign cookieOneMunicipalityValue = ""> 
10	 
11	<#if themeDisplay.getRequest().getCookies()??> 
12    <#assign cookies = themeDisplay.getRequest().getCookies() /> 
13    <#assign group_id = themeDisplay.getScopeGroupId()> 
14     
15    <#list cookies as cookie> 
16    	<#if cookie.getName() == ("LR_MUNICIPIO_NOMBRE_" + group_id)> 
17    		<#assign cookieMunicipalityNameValue = cookie.getValue()>	 
18				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%20"," ")> 
19				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%2F","/")> 
20				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%A0","à")> 
21				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%A8","è")> 
22				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%B2","ò")> 
23				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%A9","é")> 
24				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%B3","ó")> 
25				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%AD","í")> 
26				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%BA","ú")>	 
27				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%A7","ç")> 
28				<#assign cookieMunicipalityNameValue =cookieMunicipalityNameValue?replace("%C3%92","Ò")> 
29		 
30    	</#if> 
31    	<#if cookie.getName() == ("LR_ONLY_ONE_MUNICIPIO_" + group_id)> 
32    	    <#assign cookieOneMunicipalityValue = cookie.getValue()>	 
33    	</#if> 
34    </#list> 
35</#if>  
36 
37 
38<#function escapeId text> 
39    <#assign id = text?replace('^[^a-z]', '', 'ri')> 
40    <#assign id = id?replace('[^a-z|0-9|_]', '-', 'ri')> 
41    <#return id> 
42</#function> 
43<#function getTime textTime> 
44    <#assign time = "00:00"/> 
45    <#attempt> 
46        <#assign time = textTime/> 
47    <#recover> 
48        <#assign time = "00:00"/> 
49    </#attempt> 
50    <#return time/> 
51</#function> 
52<#function normalizeDate field textTime renderer> 
53	<#assign date_Data = getterUtil.getString(field.getValue().getString(locale))> 
54		<#if date_Data == '' || date_Data?contains("HH:MM") > 
55			<#assign displayDate = renderer.getAssetObject().getDisplayDate()> 
56		<#else> 
57			<#attempt> 
58				<#if getTime(textTime)?has_content && getTime(textTime)!= ""> 
59					<#if getTime(textTime) == "HH:MM"> 
60						<#assign displayDate = dateUtil.parseDate("yyyy-MM-dd HH:mm", date_Data + " " + "00:00" , locale)> 
61					<#else> 
62						<#assign displayDate = dateUtil.parseDate("yyyy-MM-dd HH:mm", date_Data + " " + getTime(textTime)?replace(".",":") , locale)> 
63					</#if> 
64				<#else> 
65					<#assign displayDate = dateUtil.parseDate("yyyy-MM-dd HH:mm", date_Data + " " + "00:00" , locale)> 
66				</#if> 
67			<#recover> 
68				<#assign displayDate = renderer.getAssetObject().getDisplayDate()/> 
69			</#attempt> 
70		</#if> 
71    <#return displayDate/> 
72</#function> 
73 
74<#function getDay date renderer> 
75    <#attempt> 
76        <#assign displayDate = dateUtil.parseDate("yyyy-MM-dd", date, locale)?date> 
77    <#recover> 
78        <#assign displayDate = renderer.getAssetObject().getDisplayDate()?date> 
79    </#attempt> 
80    <#return dateUtil.getDate(displayDate, "dd MMM", locale)/> 
81</#function> 
82<#if entries?has_content> 
83    <#assign currentAlerts = []/> 
84    <#list entries as curEntry> 
85		<#assign assetRenderer = curEntry.getAssetRenderer() 
86            ddmFormValuesReader = assetRenderer.getDDMFormValuesReader() 
87            booleanFields = ddmFormValuesReader.getDDMFormFieldValues('checkbox') 
88            dateFields = ddmFormValuesReader.getDDMFormFieldValues('date')  
89			categoryList = curEntry.getCategories() 
90			textFields = ddmFormValuesReader.getDDMFormFieldValues('text') 
91			initTime= "" 
92			endTime= "" 
93			showTime = "" 
94			/> 
95			    <#assign mostrarHome = 'false'>	 
96					<#assign ocultarFechaInicio = 'false'>	 
97					<#assign ocultarFechaFin = 'false'>	 
98		 
99		<#list booleanFields as booleanField> 
100          <#if booleanField.name == 'mostrarHome' && booleanField.getValue().getString(locale)??> 
101	          <#assign mostrarHome = booleanField.getValue().getString(locale)>		 
102	        </#if> 
103        </#list> 
104				 
105		<#list textFields as textField> 
106			<#if textField.name == 'horaInicio'> 
107				<#assign initTime = getTime(textField.getValue().getString(locale)) /> 
108			</#if> 
109			<#if textField.name == 'horaFin'> 
110				<#assign endTime =getTime(textField.getValue().getString(locale)) /> 
111			</#if> 
112			<#if textField.name == 'horaMostrar'> 
113				<#assign showTime =getTime(textField.getValue().getString(locale)) /> 
114			</#if> 
115		</#list> 
116        <#list dateFields as dateField> 
117            <#if dateField?has_content && assetRenderer?has_content> 
118                <#if dateField.name == 'FechaInicioMostrar'> 
119                    <#assign initShowDate = normalizeDate(dateField,showTime, assetRenderer) /> 
120                    <#assign initShowTime = dateUtil.getDate(initShowDate, "yyyy-MM-dd HH:mm", locale, time_zone)/> 
121                </#if> 
122    			<#if dateField.name == 'FechaInicioAviso'> 
123                    <#assign initDate = normalizeDate(dateField, initTime, assetRenderer) /> 
124                </#if> 
125                <#if dateField.name == 'FechaFinAviso'> 
126                    <#assign endDate = normalizeDate(dateField, endTime, assetRenderer) /> 
127    				<#assign endShowTime = dateUtil.getDate(endDate, "yyyy-MM-dd HH:mm", locale, time_zone)/> 
128                </#if>   
129            </#if>  
130        </#list> 
131							 
132	  <#assign matchFound = false />  		 
133		<#if categoryList?size != 0> 
134				<#if cookieMunicipalityNameValue?? && cookieMunicipalityNameValue?length gt 0> 
135					<#-- Hay cookie: solo coincidencia exacta --> 
136			<#list categoryList as category> 
137				<#if category.getName() == cookieMunicipalityNameValue> 
138					<#assign matchFound = true /> 
139					<#if (initShowDate?? && dStrange >= initShowTime?date)  &&  (dStrange <= endShowTime?date ) && (mostrarHome == 'true')> 
140						<#assign currentAlerts = currentAlerts + [curEntry] /> 
141					</#if> 
142					<#break> 
143				</#if>	 
144			</#list> 
145					<#else> 
146			<#-- SWC:  Si no hubo coincidencia exacta, buscar coincidencia por categoria padre --> 
147			<#if !matchFound> 
148				<#list categoryList as category> 
149					<#if category.getDescription()?has_content && (category.getDescription(locale)?replace("<p>","")?replace("</p>",""))?number == themeDisplay.getScopeGroupId()> 
150						<#if (initShowDate?? && dStrange >= initShowTime?date) && (dStrange <= endShowTime?date) && (mostrarHome == 'true')> 
151							<#assign currentAlerts = currentAlerts + [curEntry] /> 
152						</#if> 
153						<#break> 
154					</#if> 
155				</#list> 
156			</#if>	 
157					</#if> 
158		<#else> 
159			<#if (initShowDate?? && dStrange >= initShowTime?date)  &&  (dStrange <= endShowTime?date ) && (mostrarHome == 'true')> 
160				<#assign currentAlerts = currentAlerts + [curEntry] /> 
161			</#if> 
162		</#if> 
163    </#list> 
164 
165 
166    <#if currentAlerts?has_content> 
167        <div class="wrapper-aviso"> 
168            <div class="container"> 
169 
170                <#list currentAlerts as alert> 
171                    <#assign 
172                        assetRenderer = alert.getAssetRenderer() 
173                        ddmFormValuesReader = assetRenderer.getDDMFormValuesReader() 
174                        textFields = ddmFormValuesReader.getDDMFormFieldValues('text') 
175                        dateFields = ddmFormValuesReader.getDDMFormFieldValues('date') 
176												booleanFields = ddmFormValuesReader.getDDMFormFieldValues('checkbox') 
177                        titulo = "" 
178                        fecha = "" 
179                        contenido = "" 
180						initTime= "" 
181						endTime= "" 
182						showTime = "" 
183									 
184                    /> 
185                    <#assign titulo = alert.getTitle(locale) /> 
186                    <#list textFields as textField> 
187                        <#if textField.name == 'Entradilla'> 
188                            <#assign contenido = textField.getValue().getString(locale) /> 
189                        </#if> 
190						<#if textField.name == 'horaInicio'> 
191							<#assign initTime = getTime(textField.getValue().getString(locale)) /> 
192						</#if> 
193						<#if textField.name == 'horaFin'> 
194							<#assign endTime =getTime(textField.getValue().getString(locale)) /> 
195						</#if> 
196						<#if textField.name == 'horaMostrar'> 
197							<#assign showTime =getTime(textField.getValue().getString(locale)) /> 
198						</#if> 
199                    </#list> 
200									 
201					<#list booleanFields as booleanField> 
202					<#if booleanField.name == 'Checkbox45382858'> 
203	          <#assign ocultarFechaInicio = booleanField.getValue().getString(locale)>		 
204	        </#if> 
205					<#if booleanField.name == 'Checkbox42679912'> 
206	          <#assign ocultarFechaFin = booleanField.getValue().getString(locale)>		 
207	        </#if> 
208        </#list> 
209          
210           <#list dateFields as dateField> 
211						<#if dateField??> 
212							<#if dateField.name == 'FechaInicioMostrar'> 
213								<#assign displayShowDate = normalizeDate(dateField, showTime, assetRenderer)/>  
214							</#if> 
215							<#if dateField.name == 'FechaInicioAviso'> 
216								<#assign startDate = normalizeDate(dateField, initTime, assetRenderer)/>  
217								<#assign startDateDay = dateUtil.getDate(startDate, "yyyy-MM-dd HH:mm", locale, time_zone)/> 
218								<#assign startDateTime = dateUtil.getDate(startDate, "HH:mm", locale, time_zone)/>								 
219							</#if> 
220							<#if dateField.name == 'FechaFinAviso'> 
221								<#assign finalDate = normalizeDate(dateField, endTime, assetRenderer)/>    
222								<#assign finalDateDay = dateUtil.getDate(finalDate, "yyyy-MM-dd HH:mm", locale, time_zone)/> 
223								<#assign finalDateTime = dateUtil.getDate(finalDate, "HH:mm", locale, time_zone)/> 
224							</#if>   
225						</#if>  						 
226                    </#list> 
227									 
228                 	<#if alert?counter == 1> 
229                        <div class="row"> 
230                    <#else> 
231                        <div class="row collapse"> 
232                    </#if>	 
233                        <div class="aviso"> 
234                            <div class="fecha-aviso col-sm-2 col-xs-12 col-sm-offset-1">  
235															 
236															<#if ocultarFechaInicio == 'false' && ocultarFechaFin == 'false'> 
237																<span class="dia-mes-aviso"><@liferay.language key="avisos-inicio" /> - <@liferay.language key="avisos-fin" /></span> 
238																<span class="dia-mes-aviso">${getDay(startDateDay, assetRenderer)} - ${getDay(finalDateDay, assetRenderer)}</span> 
239								                <span class="dia-semana">${startDateTime} - ${finalDateTime}</span> 
240															<#elseif ocultarFechaInicio == 'false' && ocultarFechaFin == 'true'> 
241																<span class="dia-mes-aviso"><@liferay.language key="avisos-inicio" /></span> 
242																<span class="dia-mes-aviso">${getDay(startDateDay, assetRenderer)}</span> 
243								                <span class="dia-semana">${startDateTime}</span> 
244															<#elseif ocultarFechaInicio == 'true' && ocultarFechaFin == 'false'> 
245																<span class="dia-mes-aviso"><@liferay.language key="avisos-fin" /></span> 
246																<span class="dia-mes-aviso">${getDay(finalDateDay, assetRenderer)}</span> 
247								                <span class="dia-semana">${finalDateTime}</span> 
248															<#elseif ocultarFechaInicio == 'true' && ocultarFechaFin == 'true'> 
249																<span class="dia-mes-aviso"></span> 
250								                <span class="dia-semana"></span> 
251															</#if> 
252 
253                            </div> 
254							 
255							<#if (startDateDay?date >= dStrange)> 
256								<div class="detalle-aviso col-sm-6 col-xs-8"><p><a href="/avisos?tab2#${escapeId(titulo)}">${titulo}</a> </p>${contenido}</div> 
257							<#else> 
258								<div class="detalle-aviso col-sm-6 col-xs-8"><p><a href="/avisos?tab1#${escapeId(titulo)}">${titulo}</a> </p>${contenido}</div> 
259							</#if> 
260							 
261					<#if currentAlerts?size gt 1> 
262                            <div class="pagination-aviso col-sm-3"> 
263                                <span class="prev-aviso glyphicon glyphicon-chevron-left" role="button"></span><span class="">${alert?counter}/${currentAlerts?size}</span><span class="next-aviso glyphicon glyphicon-chevron-right" role="button"></span> 
264                            </div> 
265						</#if> 
266                        </div>             
267                    </div> 
268                </#list> 
269            </div> 
270        </div> 
271        <script type="text/javascript"> 
272			$(function() { 
273			  $('nav a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active'); 
274			}); 
275		 
276            $(document).ready(function (){ 
277                var animDuration = 400; 
278                $('.next-aviso').on('click', function (event) { 
279                    //$(this).closest('.row').addClass('hidden'); 
280                    $(this).closest('.row').fadeTo(animDuration, 0); 
281                    $(this).closest('.row').addClass('hidden');             
282                    if ($(this).closest('.row').next().length == 0) { 
283                        $($(this).closest('.row').siblings()[0]).removeClass('hidden'); 
284                        $($(this).closest('.row').siblings()[0]).fadeTo(animDuration, 1); 
285                    } else { 
286                        $(this).closest('.row').next().removeClass('hidden'); 
287                        $(this).closest('.row').next().fadeTo(animDuration, 1); 
288                    } 
289                }); 
290                $('.prev-aviso').on('click', function (event) { 
291         
292                    $(this).closest('.row').fadeTo(animDuration, 0); 
293                    $(this).closest('.row').addClass('hidden'); 
294                    if ($(this).closest('.row').prev().length == 0) { 
295                        $($(this).closest('.row').siblings()[$(this).closest('.row').siblings().length - 1]).removeClass('hidden'); 
296                        $($(this).closest('.row').siblings()[$(this).closest('.row').siblings().length - 1]).fadeTo(animDuration, 1); 
297                    } else { 
298                        $(this).closest('.row').prev().removeClass('hidden'); 
299                        $(this).closest('.row').prev().fadeTo(animDuration, 1); 
300                    } 
301                });         
302            }); 
303         
304        </script> 
305    </#if> 
306</#if> 

Cerca de ti, tu servicio de agua
Viaqua es ahora Veolia

Descubre más…

Programas educativos

Concienciando sobre el cuidado del agua y el medio ambiente