seitentitel

Detailseite

Familienservice Asset Publisher

Fehler bei der Verarbeitung der Vorlage.
Denied access to method or field getParameter of class org.apache.catalina.core.ApplicationHttpRequest

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if request.getParameter("p_p_id")??  [in template "20116#20152#31529" at line 4, column 1]
----
1<#assign viewInContext  = getterUtil.getString(portletPreferences["assetLinkBehavior"], "showFullContent") == "viewInPortlet" /> 
2<#assign filterIndividuals = getterUtil.getBoolean(portletPreferences["filterIndividualAssets"][0]) /> 
3 
4<#if request.getParameter('p_p_id')?? > 
5    <#assign articleIdParamKeyRequest = "_" + request.getParameter('p_p_id') + "_articleId" /> 
6    <#if request.getParameter(articleIdParamKeyRequest)?? > 
7        <#assign articleIdActive = request.getParameter(articleIdParamKeyRequest) /> 
8    </#if> 
9</#if> 
10 
11<div class="pme-navigation-products clearfix"> 
12    <#if entries?has_content> 
13     
14        <div class="pme-navigation-products-icon"> 
15            <i class="fa fa-bars"></i>             
16            <span>${languageUtil.get(locale, "pme-navigation-adt-headline")}</span> 
17        </div> 
18        <#list entries as curEntry> 
19            <#if filterIndividuals && meinFSLinkService??> 
20                <#assign displayedEntry = meinFSLinkService.getIndividualAsset(curEntry, themeDisplay.getUser()) /> 
21            <#else> 
22                <#assign displayedEntry = curEntry /> 
23            </#if> 
24 
25            <#assign renderer = displayedEntry.getAssetRenderer()/> 
26            <#assign journalArticle = renderer.getArticle() /> 
27            <#assign articleUrlTitle = journalArticle.getUrlTitle() />  
28            <#assign activeClass = "" /> 
29            <#if articleIdActive?? && articleIdActive == journalArticle.getArticleId()> 
30                <#assign activeClass = "active" /> 
31                <#assign arrow_icon_src = "${themeDisplay.getPathThemeImages()}/icons/arrow_right_gray.svg" /> 
32            <#else> 
33                <#assign arrow_icon_src = "${themeDisplay.getPathThemeImages()}/icons/arrow_right.svg" /> 
34            </#if> 
35            <#assign document= saxReaderUtil.read(journalArticle.getContentByLocale(themeDisplay.getLanguageId())) /> 
36            <#assign rootElement = document.getRootElement() /> 
37 
38            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='headline']") /> 
39            <#assign headline = validateInputValue(xPathSelector, rootElement) /> 
40 
41            <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='liferayLink']") /> 
42            <#assign liferayLink = validateInputValue(xPathSelector, rootElement) /> 
43 
44            <#if validator.isNotNull(htmlUtil.extractText(liferayLink))> 
45                <#list htmlUtil.extractText(liferayLink)?split("@") as item> 
46                    <#if item?index == 0> 
47                        <#assign linkPageId = item?number> 
48                    </#if> 
49                    <#if item?index == 1> 
50                        <#if item?contains("private")> 
51                            <#assign linkPrivate = true> 
52                        <#else> 
53                            <#assign linkPrivate = false> 
54                        </#if> 
55                    </#if> 
56                    <#if item?index = 2> 
57                        <#assign linkGroupId = item?number> 
58                    </#if> 
59                </#list> 
60 
61                <#-- get layout --> 
62                <#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService") /> 
63                <#assign pageLayout = layoutLocalService.getLayout(linkGroupId, linkPrivate, linkPageId) /> 
64 
65                <#-- get Friendly URL --> 
66                <#assign linkUrl = portal.getLayoutFriendlyURL(pageLayout, themeDisplay) /> 
67            <#else> 
68                <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='targetURL']") /> 
69                <#assign linkUrl = validateInputValue(xPathSelector, rootElement) /> 
70 
71                <#if (htmlUtil.extractText(linkUrl)?length == 0)> 
72                    <#assign linkUrl = meinFSAssetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, displayedEntry, viewInContext, articleUrlTitle) /> 
73                </#if> 
74            </#if> 
75 
76            <a class="pme-navigation-product-link ${activeClass}" href="${linkUrl}"> 
77                <span>${headline}</span> 
78                <img class="arrow" src="${arrow_icon_src}"/> 
79            </a> 
80        </#list> 
81 
82    <#else> 
83        <div class="alert alert-info"> 
84            <@liferay_ui["message"] key="pme-there-are-no-results" /> 
85        </div> 
86    </#if> 
87</div> 
88 
89<#function validateInputValue xPathSelector rootElement> 
90    <#if xPathSelector.selectSingleNode(rootElement)?? > 
91        <#assign output = xPathSelector.selectSingleNode(rootElement).getStringValue() /> 
92    <#else> 
93        <#assign output ="" /> 
94    </#if> 
95    <#return output /> 
96</#function>