Menú de navegació

Latest Tweets

Publicador de continguts

gvONHP2021

Informació

Publicador de continguts

Publicador de continguts

Publicador de continguts

Publicador de continguts

Publicador de continguts

S'ha produït un error mentre es processava la plantilla.
Java method "com.sun.proxy.$Proxy985.getDDMFormValues(com.liferay.dynamic.data.mapping.model.DDMForm, long)" threw an exception when invoked on com.sun.proxy.$Proxy985 object "com.liferay.dynamic.data.mapping.service.impl.DDMFieldLocalServiceImpl@4de5f352"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign ddmFormValues = ddmFieldLocal...  [in template "44029#44070#2145141" at line 23, column 33]
----
1<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")> 
2<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")> 
3<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/> 
4<div class="accordion-container bod"> 
5<h6 class="accordion-header" tabindex="0" role="link" aria-expanded="false"> 
6<#assign categories = entry.getCategories() /> 
7		<#if categories?has_content> 
8			<#list categories as category> 
9				${category.getName()} 
10				<#assign accId = category.getName()?replace('&[a-zA-Z]+;', '', 'r')?replace('[^a-zA-Z0-9. ]', '', 'r') > 
11			</#list> 
12		</#if> 
13</h6> 
14<#if entries?has_content>							 
15	<div class="accordion-content"> 
16		<ul class="list-group list-group-flush oa"> 
17		<#list entries as entry> 
18			<#if entry.getClassName() == "com.liferay.journal.model.JournalArticle" >       
19				<#assign assetRenderer = entry.getAssetRenderer()/> 
20				<#assign journalArticle = assetRenderer.getAssetObject() />	 
21				<#assign ddmStructure = journalArticle.getDDMStructure() /> 
22				<#assign ddmForm = ddmStructure.getDDMForm()/> 
23				<#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) /> 
24				<#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() /> 
25				<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() /> 
26				<#--<#assign viewDetailURL = "/web/eng/detail?assetEntry="+entry.getEntryId()+"&assetClassPK="+entry.getClassPK() />--> 
27					<#assign fileEntryId =0> 
28					<#assign contentUrl =""> 
29					<#assign contentTitle =""> 
30						<#list ddmFormFieldValues as fieldName>			 
31							<#if fieldName.getFieldReference() == 'contentUrl'> 
32								<#assign contentUrl =fieldName.getValue().getString(locale)>  
33							</#if> 
34							<#if fieldName.getFieldReference() == 'Title'> 
35								<#assign contentTitle =fieldName.getValue().getString(locale)>  
36							</#if> 
37							<#if fieldName.getFieldReference() == 'Upload90001913'> 
38								<#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]> 
39								<#assign customFieldJson = jsonFactoryUtil.createJSONObject(fieldName.getValue().getString(locale)) /> 
40								<#assign fileEntryId =  getterUtil.getInteger(customFieldJson.get('fileEntryId'))> 
41							</#if> 
42						</#list> 
43						<li class="list-group-item"> 
44							<#if fileEntryId?? && fileEntryId!=0> 
45								<#assign fileEntry = dlAppService.getFileEntry(fileEntryId) /> 
46								<a class="pdf-link" href=/documents/${fileEntry.getGroupId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}/${fileEntry.getUuid()}><span class="list-group-title">${contentTitle}</span></a> 
47							<#elseif contentUrl?has_content>					 
48								 <a href="${contentUrl}" target="_blank"><p class="list-group-title">${contentTitle}</p></a> 
49							<#else> 
50								<a href="${viewDetailURL}" title="Text"><p class="list-group-title">${contentTitle}</p></a> 
51							</#if> 
52								<p class="list-group-subtitle text-muted">${journalArticle.displayDate?date} <#--${journalArticle.displayDate?time}--></p> 
53						</li> 
54			</#if> 
55		</#list> 
56		</ul> 
57	</div> 
58</#if> 
59 
60</div> 
61<style> 
62.taglib-page-iterator{display: none;} 
63</style> 
64<script> 
65function movePagination(){ 
66	$(".taglib-page-iterator").each(function(){ 
67		var taglibThis = $(this); 
68		if(taglibThis.attr('data-moved') != "moved"){ 
69			taglibThis.show(); 
70			var appendIn = taglibThis.parent().find('.accordion-content'); 
71			taglibThis.appendTo(appendIn); 
72			taglibThis.attr('data-moved', 'moved'); 
73
74	}); 
75	 
76	var accId = localStorage.getItem('accId'); 
77	var scrollpos = localStorage.getItem('scrollpos'); 
78	if (scrollpos){window.scrollTo(0, scrollpos);} 
79	if(accId){document.getElementById(accId).style.display = 'block';} 
80
81 
82setTimeout(movePagination, 1000) 
83 
84$('.accordion-header').click(function(){ 
85	var accId = $(this).parent().find('.accordion-content').attr('id'); 
86	localStorage.setItem('accId', accId); 
87}); 
88 
89window.onbeforeunload = function(e) { 
90	localStorage.setItem('scrollpos', window.scrollY); 
91}; 
92</script> 

Publicador de continguts