Allerte E Bollettini

Allerte e bollettini

Tutti i documenti di allerta meteo idrogeologica e idraulica e i bollettini di vigilanza

Lista di allerte e bollettini di vigilanza

Si è verificato un errore nell'elaborarazione del modello.
No compatible overloaded variation was found; can't convert (unwrap) the 2nd argument to the desired Java type.
The FTL type of the argument values were: extended_hash+string (com.liferay.portlet.internal.RenderRequestImpl wrapped into f.e.b.StringModel), extended_hash+string (it.eng.allerta.utils.BlogsRenderFilter$BufferedRenderResponseWrapper wrapped into f.e.b.StringModel), extended_hash+string (com.liferay.portlet.asset.model.impl.AssetEntryImpl wrapped into f.e.b.StringModel).
The matching overload was searched among these members:
    com.liferay.asset.publisher.web.internal.util.AssetPublisherHelperImpl.getAssetViewURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, com.liferay.asset.kernel.model.AssetEntry, boolean),
    com.liferay.asset.publisher.web.internal.util.AssetPublisherHelperImpl.getAssetViewURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, com.liferay.asset.kernel.model.AssetEntry),
    com.liferay.asset.publisher.web.internal.util.AssetPublisherHelperImpl.getAssetViewURL(com.liferay.portal.kernel.portlet.LiferayPortletRequest, com.liferay.portal.kernel.portlet.LiferayPortletResponse, com.liferay.asset.kernel.model.AssetRenderer, com.liferay.asset.kernel.model.AssetEntry, boolean)

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign viewURL = assetPublisherHelpe...  [in template "20154#20194#224443" at line 21, column 9]
----
1<h2 class="sr-only">Lista degli ultimi aggiornamenti</h2> 
2 
3	<script> 
4	function removeBlog(xxx){ 
5			$.ajax({method:"POST",data:{p_auth:Liferay.authToken},url:"/group/guest/~/control_panel/manage?p_p_id=com_liferay_blogs_web_portlet_BlogsAdminPortlet&p_p_lifecycle=1&p_p_state=maximized&p_p_mode=view&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_javax.portlet.action=/blogs/edit_entry&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_cmd=move_to_trash&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_redirect="+window.location+"&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_mvcRenderCommandName=%2Fblogs%2Fview&_com_liferay_blogs_web_portlet_BlogsAdminPortlet_entryId="+xxx}).done(function( d ) { 
6    location.reload(); 
7  }) 
8
9	</script> 
10              
11<#list entries as entry> 
12 
13	<#assign entry = entry /> 
14	<#assign idEntry =  entry.getEntryId() > 
15	<#assign pk =  entry.getClassPK() > 
16	 
17	 
18	<#if entry.getAssetRenderer()?has_content > 
19	<#assign assetRenderer = entry.getAssetRenderer() /> 
20	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
21	<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
22 
23 
24	<#if assetLinkBehavior != "showFullContent"> 
25		<#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry, true) /> 
26	</#if> 
27	 
28		 
29	<#if entry.getClassName() != "it.eng.allerter.model.Allerta"  
30	     || (  
31	        entry.getClassName() == "it.eng.allerter.model.Allerta"  
32	        && entry.getAssetRenderer().getAssetObject().getStato() == 0 
33	       )> 
34 
35        <div class="card card--item  " style="margin-bottom:-2.5rem"> 
36            <div class="lfr-meta-actions asset-actions"> 
37    		 
38    		</div> 
39            <a href="${viewURL}" title="Vai alla pagina identificata da questo elemento">  
40                                                 
41                <div class="card-header"> 
42                    <div class="card__thumbnail"> 
43                        <#if  
44                            entry.getClassName() == "it.eng.allerter.model.Allerta" 
45                                && entry.getAssetRenderer().getAssetObject().getTipoAllerta() 
46
47                            <#assign viewURL = "/web/guest/singola-allerta/-/asset_publisher/FZPQSb6AzKtJ/Allerta-Bollettino/id/${idEntry}" /> 
48                            <span class="icon i-warning-o" title="Allerta"></span> 
49                        <#elseif 
50                             entry.getClassName() == "it.eng.bollettino.model.Bollettino"> 
51                             <#assign viewURL = "/web/guest/monitoraggio-dettaglio/-/asset_publisher/16LwXJHZXwfc/Bollettino/id/${idEntry}" /> 
52                            
53                            <span class="icon i-file-text-o" title="Monitoraggio"></span>     
54                            
55                        <#elseif 
56                             entry.getClassName() == "it.eng.allerter.model.Allerta" 
57                                && !entry.getAssetRenderer().getAssetObject().getTipoAllerta() 
58
59                            <#assign viewURL = "/web/guest/singola-allerta/-/asset_publisher/FZPQSb6AzKtJ/Allerta-Bollettino/id/${idEntry}" /> 
60                            <span class="icon i-bullhorn-o" title="Bollettino"></span> 
61                        <#else> 
62                            <span class="icon i-message" title="Comunicazione"></span> 
63                        </#if> 
64                    </div> 
65                </div> 
66            </a> 
67            <div class="card-body"> 
68    			<@getEditIcon /> 
69    			<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
70    			<span class onmouseover="Liferay.Portal.ToolTip.show(this, 'Sposta nel Cestino')"> 
71			 
72			<a href="javascript:removeBlog(${pk})" 
73                      class=" taglib-icon"> 
74			<img id="wert_column1_2" src="${themeDisplay.getCDNBaseURL()}/o/allerta-theme/images/common/trash.png" alt="" style="background-image: url('${themeDisplay.getCDNBaseURL()}/sprite/html/themes/control_panel/images/common/_sprite.png'); background-position: 50% -1688px; background-repeat: no-repeat; height: 16px; width: 16px;">  
75			<span class="taglib-text hide-accessible"  onmouseover="$(this).attr('title',Liferay.authToken)">Sposta nel Cestino</span> 
76			</a> 
77			</span> 
78			</#if> 
79             
80                <div class="card__heading"> 
81                    <h3 class="card__title"> 
82                        <a href="${viewURL}" title="Vai alla pagina identificata da questo elemento">                                 ${entryTitle} 
83                        </a> 
84			<div class="row card__data"> 
85                    <div class="col-12 col-xl-12 card__data__item"> 
86                        <span class="icon i-clock-o card__data__icon" title="Emanato il"></span> 
87                                                                 
88                        <span class="card__data__value">  
89                         
90                          <#if entry.getClassName() == "it.eng.allerter.model.Allerta" > 
91                            
92                            ${entry.getAssetRenderer().getAssetObject().getDataEmissione()?string["dd MMM yyyy - HH.mm"]} 
93                          <#elseif entry.getClassName() == "it.eng.bollettino.model.Bollettino"> 
94						    <#if entry.getAssetRenderer().getAssetObject().getDataEmissione()?has_content> 
95                            ${entry.getAssetRenderer().getAssetObject().getDataEmissione()?string["dd MMM yyyy - HH.mm"]} 
96							</#if> 
97                          <#elseif entry.getClassName() == "com.liferay.blogs.model.BlogsEntry"> 
98                            <@getMetadataField fieldName="publish-date" /> 
99                          </#if> 
100                           
101                             
102                        </span> 
103                    </div> 
104                </div> 
105                    </h3> 
106                </div> 
107                 
108            </div> 
109                                             
110            </a>  
111        </div> 
112         
113     </#if> 
114    </#if> 
115    </#list> 
116   
117 
118<#macro getEditIcon> 
119	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
120	 
121	 
122		<#assign redirectURL = renderResponse.createRenderURL() /> 
123 
124		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
125 
126		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
127 
128		<#if validator.isNotNull(editPortletURL)> 
129			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
130 
131			<@liferay_ui["icon"] 
132				image="edit" 
133				message=title 
134				url=editPortletURL.toString() 
135			/> 
136		</#if> 
137		 
138		 
139	</#if> 
140</#macro> 
141 
142<#macro getFlagsIcon> 
143	<#if enableFlags == "true"> 
144		<@liferay_ui["flags"] 
145			className=entry.getClassName() 
146			classPK=entry.getClassPK() 
147			contentTitle=entry.getTitle(locale) 
148			label=false 
149			reportedUserId=entry.getUserId() 
150		/> 
151	</#if> 
152</#macro> 
153 
154<#macro getMetadataField 
155	fieldName 
156
157	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
158		<span class="metadata-entry metadata-${fieldName}"> 
159			<#assign dateFormat = "dd MMM yyyy - HH.mm" /> 
160 
161			<#if fieldName == "author"> 
162				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
163			<#elseif fieldName == "categories"> 
164				<@liferay_ui["asset-categories-summary"] 
165					className=entry.getClassName() 
166					classPK=entry.getClassPK() 
167					portletURL=renderResponse.createRenderURL() 
168				/> 
169			<#elseif fieldName == "create-date"> 
170				${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
171			<#elseif fieldName == "expiration-date"> 
172				${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
173			<#elseif fieldName == "modified-date"> 
174				${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
175			<#elseif fieldName == "priority"> 
176				${entry.getPriority()} 
177			<#elseif fieldName == "emitt-date"> 
178			    ${dateUtil.getDate( entry.getAssetRenderer().getAssetObject().getDataEmissione(), dateFormat, locale)} 
179			<#elseif fieldName == "publish-date"> 
180				${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
181			<#elseif fieldName == "tags"> 
182				<@liferay_ui["asset-tags-summary"] 
183					className=entry.getClassName() 
184					classPK=entry.getClassPK() 
185					portletURL=renderResponse.createRenderURL() 
186				/> 
187			<#elseif fieldName == "view-count"> 
188				<@liferay_ui["icon"] 
189					image="history" 
190				/> 
191 
192				${entry.getViewCount()} <@liferay.language key="views" /> 
193			</#if> 
194		</span> 
195	</#if> 
196</#macro> 
197 
198 
199<#macro getSocialBookmarks> 
200	<#if enableSocialBookmarks == "true"> 
201		<@liferay_ui["social-bookmarks"] 
202			displayStyle="${socialBookmarksDisplayStyle}" 
203			target="_blank" 
204			title=entry.getTitle(locale) 
205			url=viewURL 
206		/> 
207	</#if> 
208</#macro> 

Report post-evento

Vedi tutti