Une erreur s'est produite lors du traitement du modèle.
The following has evaluated to null or missing:
==> searchContainer.setResults  [in template "10153#10191#1529587" at line 15, column 11]

----
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: ${searchContainer.setResults(searchEn...  [in template "10153#10191#1529587" at line 15, column 9]
----
1<#if entries?has_content> 
2    <#assign searchList = [] /> 
3    <#assign cptEntries = 0 /> 
4	<#list entries as entry> 
5	    <#if !entry.getViewURL()?contains("document_library")> 
6	        <#if cptEntries == 0 > 
7                <#assign searchEntries = [entry] /> 
8	        <#else> 
9                <#assign searchEntries = searchEntries + [entry] /> 
10            </#if> 
11            <#assign cptEntries = cptEntries + 1 /> 
12        </#if> 
13    </#list> 
14    <#if searchEntries?has_content> 
15        ${searchContainer.setResults(searchEntries)} 
16        ${searchContainer.setTotal(searchEntries?size)} 
17    <#else> 
18        ${searchContainer.setResults(null)} 
19        ${searchContainer.setTotal(0)} 
20    </#if> 
21</#if> 
22 
23<div class="search-total-label"> 
24	${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
25</div> 
26 
27<div class="display-list"> 
28	<ul class="list-group" id="search-results-display-list"> 
29		<#if searchEntries?has_content> 
30			<#list searchEntries as entry> 
31				<li class="list-group-item list-group-item-flex"> 
32					<#if !entry.isTemporarilyUnavailable() > 
33						<div class="autofit-col autofit-col-expand"> 
34							<section class="autofit-section"> 
35								<div class="list-group-title"> 
36									<a href="${entry.getViewURL()}"> 
37										${entry.getHighlightedTitle()}<br/> 
38									</a> 
39								</div> 
40 
41								<div class="search-results-metadata"> 
42									<p class="list-group-subtext"> 
43										<#if entry.isCreationDateVisible()> 
44											<span class="subtext-item"> 
45												<@liferay.language key="on-date" /> 
46 
47												${entry.getCreationDateString()} 
48											</span> 
49										</#if> 
50									</p> 
51 
52									<#if entry.isContentVisible()> 
53										<p class="list-group-subtext"> 
54											<span class="subtext-item"> 
55												${entry.getContent()} 
56											</span> 
57										</p> 
58									</#if> 
59 
60									<#if entry.isFieldsVisible()> 
61										<p class="list-group-subtext"> 
62											<#assign separate = false /> 
63 
64											<#list entry.getFieldDisplayContexts() as fieldDisplayContext> 
65												<#if separate> 
66													&#183; 
67												</#if> 
68 
69												<span class="badge">${fieldDisplayContext.getName()}</span> 
70 
71												<span>${fieldDisplayContext.getValuesToString()}</span> 
72 
73												<#assign separate = true /> 
74											</#list> 
75										</p> 
76									</#if> 
77 
78									<#if entry.isDocumentFormVisible()> 
79										<h6 class="expand-details text-default"> 
80											<span class="list-group-text" style=""> 
81												<a href="javascript:;"> 
82													<@liferay.language key="details" />... 
83												</a> 
84											</span> 
85										</h6> 
86 
87										<div class="hide search-results-list table-details table-responsive"> 
88											<table class="table"> 
89												<thead> 
90													<tr> 
91														<th class="key-column"> 
92															<@liferay.language key="key" /> 
93														</th> 
94														<th> 
95															<@liferay.language key="value" /> 
96														</th> 
97													</tr> 
98												</thead> 
99 
100												<tbody> 
101													<#list entry.getDocumentFormFieldDisplayContexts() as fieldDisplayContext> 
102														<tr> 
103															<td class="key-column table-details-content"> 
104																<strong>${htmlUtil.escape(fieldDisplayContext.getName())}</strong> 
105															</td> 
106															<td class="table-details-content"> 
107																<code> 
108																	${fieldDisplayContext.getValuesToString()} 
109																</code> 
110															</td> 
111														</tr> 
112													</#list> 
113												</tbody> 
114											</table> 
115										</div> 
116									</#if> 
117								</div> 
118							</section> 
119						</div> 
120					<#else> 
121						<div class="autofit-col"> 
122							<div class="alert alert-danger"> 
123								<@liferay.language_format 
124									arguments="result" 
125									key="is-temporarily-unavailable" 
126								/> 
127							</div> 
128						</div> 
129					</#if> 
130				</li> 
131			</#list> 
132		</#if> 
133	</ul> 
134</div> 
135 
136<@liferay_aui.script use="aui-base"> 
137	A.one('#search-results-display-list').delegate( 
138		'click', 
139		function(event) { 
140			var currentTarget = event.currentTarget; 
141 
142			currentTarget.siblings('.search-results-list').toggleClass('hide'); 
143		}, 
144		'.expand-details' 
145	); 
146</@liferay_aui.script> 

Recherche de contenu

Comment effectuer ma recherche ?

Une recherche précise est plus rapide que de naviguer d'une page à une autre. Renseigner le ou les mots clés qui correspondent à votre recherche en vous limitant à l'essentiel. Exemple : Je cherche à trouver les horaires de la mairie de Naintré --> je vais taper les mots : "horaire mairie".