Virhe tapahtui prosessoidessa esitysmallia.
Method public java.util.Date com.liferay.portal.kernel.util.DateUtil_IW.parseDate(java.lang.String,java.util.Locale) throws java.text.ParseException threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW@7a33f8cf
1<div class="destaque-competicoes-e-eventos row-fluid"> 
2    <#assign targetViewUrl = "eventos" /> 
3    <#assign targetPortletID = "mvpUr05OWSNF" /> 
4    <#assign iconDefault = "article.png" /> 
5    <#assign eventoDestaqueClassPkId =  0?number /> 
6    <#if entries?has_content> 
7        <h3> 
8             <a href="/${targetViewUrl}" >Competições e Eventos </a> 
9        </h3> 
10    </#if> 
11    
12    <div class="row-fluid"> 
13        <#if entries?has_content> 
14            <div class="span6 esquerda"> 
15                <#list entries as entry> 
16                    <#assign eventoDestaque = false /> 
17                    <#list entry.getCategories() as category> 
18                        <#if category.getName() == 'Destaque evento'> 
19                            <#assign eventoDestaque = true /> 
20                        </#if> 
21                    </#list> 
22                    <#assign assetRenderer = entry.getAssetRenderer() /> 
23                    <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
24                    <#assign viewURL = "/${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}" /> 
25                    <#assign urlThumb = entry.getAssetRenderer().getThumbnailPath(renderRequest)/> 
26                    <#assign urlLength = urlThumb?length> 
27                    <#assign imageDefault = urlThumb?substring(urlLength - 11,urlLength)> 
28                    <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
29                    <#assign dataInicio = docXml.valueOf("//dynamic-element[@name='dataInicio']/dynamic-content/text()") /> 
30                    <#assign dateInner = dataInicio/> 
31                    <#assign dataConv =  dateUtil.parseDate(dateInner?number?number_to_date?string["dd/MM/yyyy"], locale) /> 
32                    <#assign dataDia = dateUtil.getDate(dataConv,"dd",locale,themeDisplay.getTimeZone()) /> 
33                    <#assign dataDiaConvertida =  dataDia?number /> 
34                    <#assign dataAno = dateUtil.getDate(dataConv,"yyyy",locale,themeDisplay.getTimeZone())/> 
35                    <#assign dataAnoConvertida =  dataAno?number /> 
36                    <#assign dataMes = dateUtil.getDate(dataConv,"MM",locale,themeDisplay.getTimeZone())/> 
37                    <#assign dataMesConvertida =  dataMes?number /> 
38     
39 
40                    <#if imageDefault != iconDefault && eventoDestaque == true> 
41                     <#assign eventoDestaqueClassPkId =  entry.getClassPK()?number > 
42                     <figure> 
43                         <a href="${viewURL}" alt="texto">  
44                             <img src="${urlThumb}" alt="${entryTitle}"> 
45                         </a> 
46                         <figcaption> 
47                             <time> ${dataInicio?number?number_to_date?string["dd/MM/yyyy"]} </time> 
48                             <h4 class="evento-destaque">  
49                                ${entryTitle} 
50                            </h4> 
51                         </figcaption> 
52                     </figure> 
53                        <#break> 
54                    </#if> 
55 
56                </#list> 
57            </div> 
58        </#if> 
59 
60        <#if entries?has_content> 
61            <div class="span6 direita" > 
62             <#assign counterDemais = 0?number /> 
63                <ul class="news-list"> 
64                    <#list entries as entry> 
65                        <#if entry.getClassPK()?number != eventoDestaqueClassPkId  && counterDemais <= 3 > 
66                            <#assign assetRenderer = entry.getAssetRenderer() /> 
67                            <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
68                            <#assign viewURL = "/${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}" /> 
69                            <#assign urlThumb = entry.getAssetRenderer().getThumbnailPath(renderRequest)/> 
70                            <#assign urlLength = urlThumb?length> 
71                            <#assign imageDefault = urlThumb?substring(urlLength - 11,urlLength)> 
72                            <#assign docXml = saxReaderUtil.read(entry.getAssetRenderer().getArticle().getContent()) /> 
73                            <#assign dataInicioIn = docXml.valueOf("//dynamic-element[@name='dataInicio']/dynamic-content/text()") /> 
74                            <#assign dataFim = docXml.valueOf("//dynamic-element[@name='dataFim']/dynamic-content/text()") /> 
75                            <#assign local = docXml.valueOf("//dynamic-element[@name='local']/dynamic-content/text()") /> 
76 
77                            <#assign dateInnerIn = dataInicioIn/> 
78                            <#assign dataConvIn =  dateUtil.parseDate(dateInnerIn?number?number_to_date?string["dd/MM/yyyy"], locale) /> 
79                            <#assign dataDiaIn = dateUtil.getDate(dataConvIn,"dd",locale,themeDisplay.getTimeZone()) /> 
80                            <#assign dataDiaConvertidaIn =  dataDiaIn?number /> 
81                            <#assign dataAnoIn = dateUtil.getDate(dataConvIn,"yyyy",locale,themeDisplay.getTimeZone())/> 
82                            <#assign dataAnoConvertidaIn =  dataAnoIn?number /> 
83                            <#assign dataMesIn = dateUtil.getDate(dataConvIn,"MM",locale,themeDisplay.getTimeZone())/> 
84                            <#assign dataMesConvertidaIn =  dataMesIn?number /> 
85 
86 
87                            <#assign dateInnerFim = dataFim/> 
88                            <#assign dataConvFim =  dateUtil.parseDate(dateInnerFim?number?number_to_date?string["dd/MM/yyyy"], locale) /> 
89                            <#assign dataDiaFim = dateUtil.getDate(dataConvFim,"dd",locale,themeDisplay.getTimeZone()) /> 
90                            <#assign dataDiaConvertidaFim =  dataDiaFim?number /> 
91                            <#assign dataAnoFim = dateUtil.getDate(dataConvFim,"yyyy",locale,themeDisplay.getTimeZone())/> 
92                            <#assign dataAnoConvertidaFim =  dataAnoFim?number /> 
93                            <#assign dataMesFim = dateUtil.getDate(dataConvFim,"MM",locale,themeDisplay.getTimeZone())/> 
94                            <#assign dataMesConvertidaFim =  dataMesIn?number /> 
95 
96                            <#if imageDefault != iconDefault > 
97                                    <li> 
98                                        <div class="detalhes"> 
99                                           
100                                            <address> <i class="icon-map-marker"></i> ${local}                                                   </address> 
101                                             
102                                        </div> 
103                                        <div class="evento"> 
104                                            <h4 class="titulo">  
105                                                <a href="${viewURL}"> ${entryTitle} </a> 
106                                            </h4> 
107                                             
108                                            <ul class="tags"> 
109                                            <#list entry.getTags() as tags> 
110                                                 
111                                                    <li class="tag"> <a href="/${targetViewUrl}?p_p_id=141_INSTANCE_xyvrI54fSNwn&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-1&p_r_p_564233524_resetCur=true&p_r_p_564233524_tag=${tags.getName()}"> ${tags.getName()} </a> </li>  
112                                                
113                                            </#list> 
114                                             </ul> 
115                                        </div> 
116                                    </li> 
117                            </#if> 
118                        </#if> 
119                        <#assign counterDemais = counterDemais + 1?number /> 
120                    </#list> 
121                </ul> 
122            </div> 
123        </#if> 
124    </div> 
125</div> 
126 
127<#function isBissexto ano> 
128 
129    <#assign bissexto = false /> 
130     
131    <#if (ano % 400 == 0) > 
132        <#assign bissexto = true /> 
133    <#elseif ((ano % 4 == 0) && (ano % 100 != 0))>  
134        <#assign bissexto = true /> 
135    <#else > 
136        <#assign bissexto = false /> 
137    </#if> 
138 
139  <#return bissexto?string> 
140 
141</#function> 
142 
143<#function plusOneDay dia mes ano> 
144 
145    <#assign isBi = isBissexto(ano) /> 
146    <#assign mesesTrinta = ["4","6","9","11"] /> 
147 
148    <#assign mesesTrintaUm = ["1","3","5","7","8","10","12"] /> 
149 
150    <#if ((isBi?contains("true")) && (mes == 2) && (dia == 29))> 
151        <#assign dia_final = "1" />  
152        <#assign mes_final = "3" /> 
153    <#elseif ((isBi?contains("false")) && (mes == 2) && (dia == 28))> 
154        <#assign dia_final = "1" />  
155        <#assign mes_final = "3" /> 
156     <#elseif ((mesesTrinta?seq_index_of(mes?string) > 0) && (dia == 30))>   
157        <#assign dia_final = "1" />  
158        <#assign mes_final = mes + 1 />  
159      <#elseif ((mesesTrintaUm?seq_index_of(mes?string) > 0) && (dia == 31))>   
160        <#assign dia_final = "1" />  
161        <#if (mes == 12)> 
162            <#assign mes_final = 1 />  
163        <#else>  
164            <#assign mes_final = mes + 1/>  
165        </#if>    
166    <#else> 
167 
168        <#assign dia_final = dia + 1 />  
169        <#assign mes_final = mes  /> 
170 
171    </#if> 
172      
173  <#if (dia_final <= 9) && (mes_final <= 9) > 
174        <#return "0" + dia_final?string + "/" + "0" + mes_final?string + "/" + ano?string /> 
175	 
176	<#elseif (dia_final <= 9) && (mes_final >= 10) > 
177        <#return "0" + dia_final?string + "/" + mes_final?string + "/" + ano?string /> 
178		 
179 	<#elseif (dia_final >= 10) && (mes_final <=9) > 
180        <#return dia_final?string + "/" + "0" + mes_final?string + "/" + ano?string /> 
181    	 
182	<#elseif (dia_final >= 10) && (mes_final >=10) > 
183      <#return dia_final?string + "/" + mes_final?string + "/" + ano?string />  
184     
185	</#if>     
186 
187 
188   
189</#function> 

Redes Sociais

Campanhas

Campanhas
Saiba Mais