Ocorreu um erro ao processar o template.
The following has evaluated to null or missing: ==> freeMarkerPortletPreferences.setValue [in template "20099#20135#223773" at line 22, column 29] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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 VOID = freeMarkerPortletPrefe... [in template "20099#20135#223773" at line 22, column 13] ----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
2<#assign journalArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) />
3<#assign resourcePrimKey = journalArticle.getResourcePrimKey()>
4<div class="resources whitepaper">
5 <div class="row">
6 <#if detailImage.getData()?? && detailImage.getData() != "">
7 <div class="col-img col-xl-6 text-center px-0">
8 <p class="img-cont-fixed" style="background-image:url(/o/portal-izertis-theme/images/whitepaper/Wp_background.jpg)">
9 <img alt="${detailImage.getAttribute("alt")}" src="${detailImage.getData()}" />
10 </p>
11 </div>
12 </#if>
13 <div class="col-content pt-xl-8 pt-xxl-12 col-xl-6 pl-xxl-100px px-5 py-4">
14 <#if detailDescription.getData()?? && detailDescription.getData() != "">
15 <div class="row">
16 <div class="col-12 col-xl-10 info">
17 ${detailDescription.getData()}
18 </div>
19 </div>
20 </#if>
21
22 <#assign VOID = freeMarkerPortletPreferences.setValue("portletSetupPortletDecoratorId", "barebone")>
23 <#assign VOID = freeMarkerPortletPreferences.setValue("showConfigurationIcon", "false")>
24
25 <div class="form-contact-details">
26 <@liferay_portlet["runtime"]
27 defaultPreferences="${freeMarkerPortletPreferences}"
28 portletProviderAction=portletProviderAction.VIEW
29 persistSettings=false
30 portletName="portalresourcesdownloadportlet_WAR_portalresourcesdownloadportlet" />
31 ${freeMarkerPortletPreferences.reset()}
32 </div>
33 </div>
34 </div>
35</div>
36
37<#assign resourceDownloadURL = themeDisplay.getPortalURL() + resource.getData()>
38
39<script type="text/javascript">
40 $(document).ready(function(){
41 $("input[id='_portalresourcesdownloadportlet_WAR_portalresourcesdownloadportlet_resourceDownloadURL']" ).val("${resourceDownloadURL}");
42 $("input[id='_portalresourcesdownloadportlet_WAR_portalresourcesdownloadportlet_resourceName']" ).val("${title.getData()}");
43 $("input[id='_portalresourcesdownloadportlet_WAR_portalresourcesdownloadportlet_resourceFriendlyURL']" ).val("${.vars['reserved-article-url-title'].data}");
44 $("input[id='_portalresourcesdownloadportlet_WAR_portalresourcesdownloadportlet_articleId']" ).val("${resourcePrimKey}");
45 });
46</script>
Nó: portalesizertis-webapp-54749d4656-mhdzt:8080