Intestazione e Note

UPcycling TOgether, botteghe creative e solidali

fase 1 di 4: Crowdmapping e Ascolto attivo

Lista Documenti

Si รจ verificato un errore nell'elaborarazione del modello.
Can't convert this string to number: ""
The blamed expression:
==> fileEntryJSON.getString("groupId")?number  [in template "10155#10195#2756002" at line 26, column 108]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: fileEntryGroupId = fileEntryJSON.getS...  [in template "10155#10195#2756002" at line 26, column 89]
	- Reached through: #assign-container  [in template "10155#10195#2756002" at line 24, column 81]
----
1<#assign 
2    jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"] 
3    textFormatter = staticUtil["com.liferay.portal.kernel.util.TextFormatter"] 
4    fileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") 
5/> 
6<!-- Accordion documenti --> 
7<section class="rt-container"> 
8    <div class="rt-wrapper"> 
9 
10        <!-- Accordion --> 
11        <div class="rt-portlet-text-block"> 
12            <div class="rt-portlet-text-block__content"> 
13                <h4 class="rt-accordion-title"></h4> 
14				 
15				<#if Tipologia.getSiblings()?has_content> 
16					<#list Tipologia.getSiblings() as cur_tipologia> 
17						<dl class="rt-accordion"> 
18							<dt class="rt-accordion__trigger"><a id="accordion-trigger-01-${cur_tipologia?index}" aria-expanded="false" 
19									aria-controls="panel-01-${cur_tipologia?index}" href=""><span class="rt-accordion__trigger-title">${cur_tipologia.getData()}</span> <i aria-hidden="true" class="far fa-chevron-down"></i></a></dt> 
20							<dd role="region" aria-labelledby="accordion-trigger-01-${cur_tipologia?index}" id="panel-01-${cur_tipologia?index}" 
21								class="rt-accordion__panel"> 
22								<#if cur_tipologia.Documento.getSiblings()?has_content> 
23									<#list cur_tipologia.Documento.getSiblings() as cur_fileEntry> 
24										<#assign  
25											fileEntryJSON = jsonFactoryUtil.createJSONObject(cur_fileEntry.data) 
26											fileEntryGroupId = fileEntryJSON.getString("groupId")?number 
27											fileEntryId = fileEntryJSON.getString("classPK")?number 
28											fileEntryTitle = fileEntryJSON.getString("title") 
29											dlFileEntry = fileEntryLocalService.fetchDLFileEntry(fileEntryId) 
30											downloadTitle = "Vedi/scarica " + fileEntryTitle 
31										/> 
32										<a target="_blank" class="rt-document-item" href="${cur_fileEntry.getData()}"> <span class="rt-document-item__title">${fileEntryTitle}</span> <span class="rt-document-item__weight">[ ${textFormatter.formatStorageSize(dlFileEntry.size, locale)} - ${dlFileEntry.getExtension()} ]</span> <i aria-hidden="true" class="far fa-download"></i></a> 
33									</#list>  
34								</#if> 
35							</dd> 
36 
37						</dl> 
38					</#list>  
39				</#if> 
40				 
41            </div> 
42        </div> 
43        <!-- END // Accordion --> 
44         
45    </div> 
46</section> 
47 
48<!-- ./END Accordion documenti -->