Test01

test01

SCOPRI DI PIU'

image-section

Singola sezione

test singola sezione

image-section

Singola scheda prodotto

test scheda singola

Si è verificato un errore nell'elaborarazione del modello.
Denied access to method or field getParameter of class org.apache.catalina.core.ApplicationHttpRequest

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #if (userType == "5" || userType == "...  [in template "20155#20195#3295440" at line 52, column 53]
----
1<#if LinkLabel.getData() ?? && LinkLabel.getData()?has_content> 
2    <#assign isVisible = true> 
3    <#if LinkLabel.SchedaProdotto.getData()?has_content> 
4        <#assign journalArticleServiceUtil = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5        <#assign jsonPolizza = jsonFactoryUtil.createJSONObject(LinkLabel.SchedaProdotto.getData()) /> 
6        <#if journalArticleServiceUtil?? && jsonPolizza.get('title')??> 
7 
8            <#assign article = journalArticleServiceUtil.getArticleByUrlTitle(themeDisplay.getScopeGroupId(), jsonPolizza.get('title')) /> 
9            <#assign codiceProdotto = article.getExpandoBridge().getAttribute("product_code")/> 
10            <#assign polizzaProdotto = tplToolUtil.getPolizzaByCodProdotto(request, codiceProdotto)!false /> 
11            <#assign isVisible = !(polizzaProdotto?is_boolean && !polizzaProdotto)> 
12            <#if !LinkLabel.SchedaProdotto.NascondiSenzaConvenzione?? || !getterUtil.getBoolean(LinkLabel.SchedaProdotto.NascondiSenzaConvenzione.getData())> 
13                <#assign isVisible = true> 
14            </#if> 
15        </#if> 
16    </#if> 
17    <#if isVisible> 
18        <section class="container"> 
19            <div class="row"> 
20                <div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1"> 
21                    <div class="container mb-12x mb-md-27x"> 
22                        <div class="row"> 
23                            <#if Image.getData() ?? && Image.getData()?has_content> 
24                                <div class="AF-Subsection_imageContainer col-xs-12 col-md-6 "> 
25                                    <picture> 
26                                        <source srcset="${Image.getData()}" media="(min-width: 576px)"> 
27                                        <img class="AF-Subsection_image fit-cover" src="${Image.getData()}" 
28                                             alt="image-section"> 
29                                    </picture> 
30                                </div> 
31                                <div class="AF-Subsection_text col-xs-12 col-md-6"> 
32                                    <h2 class="mb-1x">${Section.getData()}</h2> 
33                                    <div>${Content.getData()}</div> 
34                                    <div class="AF-Subsection_button"> 
35                                        <#if LinkLabel.LinkToPage.getData()?has_content> 
36                                            <a href="${LinkLabel.LinkToPage.getFriendlyUrl()}" 
37                                               class="AF-Btn AF-Btn-outline-primary AF-link-sezione"> 
38                                                <span class="AF-Btn_label AF-Btn_label-link">${LinkLabel.getData()}</span> 
39                                                <svg id="arrow-red-right" xmlns="http://www.w3.org/2000/svg" fill="red"> 
40                                                    <use xlink:href="#icon-arrow-red-right"></use> 
41                                                </svg> 
42                                            </a> 
43                                        <#else> 
44                                            <#if polizzaProdotto?is_boolean && !polizzaProdotto> 
45                                                <#if user?? && user.getExpandoBridge()?? && user.getExpandoBridge().getAttribute("user_tipoUtente")??> 
46                                                    <#assign userType = user.getExpandoBridge().getAttribute("user_tipoUtente") /> 
47                                                </#if> 
48                                                <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
49                                                <#assign httpServletRequest = serviceContext.getRequest()> 
50 
51                                                <#if userType?? > 
52                                                    <#if (userType == "5" || userType == "6" || httpServletRequest.getParameter('agenteImpersonificatore')??)> 
53                                                        <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">Gentile agente, il tuo gruppo non possiede la convenzione adatta a questo prodotto.</p> 
54                                                    <#else> 
55                                                        <#if LinkLabel.SchedaProdotto.ErroreConvenzioneMancante?? && LinkLabel.SchedaProdotto.ErroreConvenzioneMancante.getData()?has_content> 
56                                                            <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">${LinkLabel.SchedaProdotto.ErroreConvenzioneMancante.getData()}</p> 
57                                                        <#else> 
58                                                            <p style="font-size: 16px;color: rgba(0,0,0,0.6);line-height: 1.2; text-decoration: underline;">Gentile cliente, non possiede la convenzione adatta a questo prodotto.</p> 
59                                                        </#if> 
60                                                    </#if> 
61                                                </#if> 
62                                            <#else> 
63<#--                                                <#assign urlSchedaProdotto = "/web" + themeDisplay.getScopeGroup().getFriendlyURL() + "/-/" + article.getUrlTitle() + "?" + "codiceProdotto=" + codiceProdotto + "&versioneProdotto=" + polizzaProdotto.getVersion() + "&codiceConvenzione=" + polizzaProdotto.getCodeConvenzione() />--> 
64                                                <a href="${polizzaProdotto.getFriendlyUrlContent()}" 
65                                                   class="AF-Btn AF-Btn-outline-primary AF-link-sezione"> 
66                                                    <span class="AF-Btn_label AF-Btn_label-link">${LinkLabel.getData()}</span> 
67                                                    <svg id="arrow-red-right" xmlns="http://www.w3.org/2000/svg" fill="red"> 
68                                                        <use xlink:href="#icon-arrow-red-right"></use> 
69                                                    </svg> 
70                                                </a> 
71                                            </#if> 
72                                        </#if> 
73                                    </div> 
74                                </div> 
75                            </#if> 
76                        </div> 
77                    </div> 
78                </div> 
79            </div> 
80        </section> 
81    </#if> 
82<#else> 
83 
84    <div class="container"> 
85        <div class="row"> 
86            <div class="col-xs-12 offset-xs-0 col-lg-10 offset-lg-1"> 
87                <section class="row mb-16x mb-md-26x"> 
88                    <#if Image.getData() ?? && Image.getData()?has_content> 
89                        <div class="AF-About_imgContainer col-md-6"> 
90                            <picture> 
91                                <source srcset="${Image.getData()}" media="(min-width: 576px)"> 
92                                <img class="AF-About_imgBanner fit-cover" src="${Image.getData()}" alt="image-section"> 
93                            </picture> 
94                        </div> 
95                        <div class="col-md-6"> 
96                            <h2 class="mb-3x">${Section.getData()}</h2> 
97                            <div>${Content.getData()}</div> 
98                        </div> 
99                    </#if> 
100                </section> 
101            </div> 
102        </div> 
103    </div> 
104</#if> 
105 
106<script type="text/javascript"> 
107 
108    $(document).ready(function() { 
109        $(document).on('click', '.AF-link-sezione', function(e) { 
110            let urlNew = $(this).attr("href"); 
111            let url = window.location.href; 
112            let impers; 
113            let param; 
114 
115            if (url.indexOf("doAsUserId") >= 0) { 
116                param = "doAsUserId"; 
117            } else if (url.indexOf("cliente") >= 0) { 
118                param = "cliente"; 
119
120 
121            if (param) { 
122                impers = url.substring(url.indexOf(param)); 
123                if (urlNew.includes("?")) { 
124                    urlNew = urlNew + "&" + impers; 
125                } else { 
126                    urlNew = urlNew + "?" + impers; 
127
128
129            $(this).attr("href", urlNew); 
130        }); 
131    }); 
132 
133</script> 

Cards 01 UAT

Test cards

Test 02

Test 02 UAT

Scheda prodotto

Scheda prodotto UAT

telephone

telephone

Link esterno

Link esterno

No conv

No conv