Si รจ verificato un errore nell'elaborarazione del modello.
Denied resolving class java.lang.Class by java.lang.Class
1## list document 
2 
3#set($fileEntryLocalService = $serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService")) 
4#set ($scopeGroupId = $getterUtil.getLong($request.theme-display.scope-group-id)) 
5#set ($textFormatter = $portal.getClass().forName('com.liferay.portal.kernel.util.TextFormatter').newInstance()) 
6 
7#set ($count = 0) 
8 
9#if (!$attachments.getSiblings().isEmpty()) 
10	 
11	<div class="all-attachments">  
12		<a href="documenti">vedi tutti  
13		<span class="icon-stack icon-1x" >  
14			<i class="icon-stop icon-stack-base"></i>  
15			<i class="icon-arrow-right icon-light"></i>  
16		</span> 
17		</a> 
18	</div> 
19	 
20	<ul class="attachments"> 
21	#foreach ($cur_attachments in $attachments.getSiblings()) 
22		#set ($count = $count +1) 
23		#if( $count > 3 ) 
24			#break 
25		#end 
26		 
27        ## Get the group ID of the document library you are referring to 
28        #set ($gid = $getterUtil.getLong($cur_attachments.getData().split("/").get(2))) 
29 
30        ## Get the folder ID of the DL 
31        #set ($fid = $getterUtil.getLong($cur_attachments.getData().split("/").get(3))) 
32 
33        ## Get the file title 
34        #set ($fileTitle = $cur_attachments.getData().split("/").get(4)) 
35 
36        ## Since the file title is URL encoded, we need to decode it first 
37        ## (I assume you are using UTF-8 as charset) 
38        #set ($tmp = {}) 
39        #set ($decoder = $tmp.class.forName("java.net.URLDecoder").newInstance()) 
40        #set ($fileTitle = $decoder.decode($fileTitle, "UTF-8"))	 
41        #set ($uuid = $cur_attachments.getData().split("/").get(5))	 
42				 
43		#set ($fileEntry = $fileEntryLocalService.getDLFileEntryByUuidAndGroupId($uuid, $gid))  
44	 
45        <li><i class="icon-file-alt"></i> <a href="$cur_attachments.getData()" target="_blank">$fileTitle</a> ( $textFormatter.formatStorageSize($fileEntry.getSize(), $locale) )</li> 
46		 
47		 
48		 
49		 
50	#end 
51	 
52	</ul> 
53#end