imagealt

La sindaca di Roma Virginia Raggi

Foto Sindaco di Roma Capitale Virginia Raggi
Si è verificato un errore nell'elaborarazione del modello.
The following has evaluated to null or missing:
==> webContentUtil  [in template "20098#20124#39928" at line 17, column 60]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign templateKey = webContentUtil...  [in template "20098#20124#39928" at line 17, column 37]
----
1<#assign journalClassName = "com.liferay.journal.model.JournalArticle" /> 
2<#assign templateName = "message" /> 
3 
4 <#if entries?has_content> 
5    <section id="ma-message-list"> 
6        <div class="section section-inset-shadow pb-5"> 
7            <div class="container px-4"> 
8                <div class="row"> 
9                    <#list entries as curEntry> 
10                        <div class="col-12 col-sm-12 col-lg-12"> 
11                            <#assign assetRenderer = curEntry.getAssetRenderer() /> 
12                            <#if assetRenderer.getClassName() == journalClassName > 
13                         
14                                <#assign article = assetRenderer.getArticle() /> 
15                                <#assign ddmStructure = article.getDDMStructure() />   
16                                <#if ddmStructure?has_content > 
17                                    <#assign templateKey = webContentUtil.getWebContentTemplateKeyByTemplateName(article, templateName, locale) /> 
18                                    <#if templateKey?has_content > 
19                                        <@liferay_journal["journal-article"] 
20                                            articleId=article.getArticleId() 
21                                            groupId=article.getGroupId() 
22                                            ddmTemplateKey=templateKey 
23                                            /> 
24                                    <#else> 
25                                        <p>Non esiste un template di tipo <i>${templateName}</i> per la struttura <i>${ddmStructure.getName(locale)}</i> [<b>${article.getTitle(locale)}</b>]</p> 
26                                    </#if> 
27                                </#if> 
28                            </#if> 
29                        </div> 
30                    </#list> 
31                </div> 
32            </div> 
33       </div> 
34    </section> 
35</#if>