Category Facet

Search Results

Có lỗi xảy ra trong quá trình xử lý biểu mẫu.
Java method "com.sun.proxy.$Proxy65.getEntry(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy65 object "com.liferay.asset.internal.service.AssetEntryAssetCategoryRelAssetEntryLocalServiceWrapper@19168015"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign assetEntry = assetEntryLocalS...  [in template "37610#37640#37775" at line 11, column 9]
----
1<div class="search-total-label"> 
2    ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
3</div> 
4 
5<div class="display-list"> 
6    <ul class="list-group" id="search-results-display-list"> 
7        <#if entries?has_content> 
8        <#list entries as entry> 
9            <#if  entry??> 
10        <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
11        <#assign assetEntry = 
12            assetEntryLocalService.getEntry( 
13                entry.getClassName(), 
14                entry.getClassPK() 
15            ) 
16        /> 
17        <#assign renderer = assetEntry.getAssetRenderer() /> 
18        <#assign urlTitle = "" /> 
19        <#if renderer?? && renderer.getUrlTitle()??> 
20            <#assign urlTitle = renderer.getUrlTitle() /> 
21        </#if> 
22 
23        <#if !urlTitle?has_content> 
24            <#continue> 
25        </#if> 
26        <li class="list-group-item list-group-item-flex"> 
27            <#if !entry.isTemporarilyUnavailable()> 
28            <div class="autofit-col"> 
29                <#if entry.isThumbnailVisible()> 
30                <span class="sticker"> 
31									<span class="sticker-overlay"> 
32										<img 
33                                                alt="${languageUtil.get(locale, "thumbnail")}" 
34											class="sticker-img" 
35											src="${entry.getThumbnailURLString()}" 
36										/> 
37									</span> 
38								</span> 
39                <#elseif entry.isUserPortraitVisible() && stringUtil.equals(entry.getClassName(), userClassName)> 
40                <@liferay_ui["user-portrait"] userId=entry.getAssetEntryUserId() /> 
41                <#elseif entry.isIconVisible()> 
42                <span class="sticker sticker-rounded sticker-secondary sticker-static"> 
43									<@clay.icon symbol="${entry.getIconId()}" /> 
44								</span> 
45            </#if> 
46</div> 
47 
48<div class="autofit-col autofit-col-expand"> 
49    <section class="autofit-section"> 
50        <div class="list-group-title"> 
51            <#if urlTitle?has_content> 
52                <a href="${themeDisplay.getPathFriendlyURLPublic()}${themeDisplay.getSiteGroup().getFriendlyURL()}/-/${urlTitle}"> 
53                    ${entry.getHighlightedTitle()} 
54                </a> 
55            <#else> 
56                <span> {entry.getHighlightedTitle()} </span> 
57            </#if> 
58        </div> 
59 
60        <div class="search-results-metadata"> 
61            <p class="list-group-subtext"> 
62 
63 
64                <#if entry.isLocaleReminderVisible()> 
65                <@liferay_ui["icon"] 
66                icon="../language/${entry.getLocaleLanguageId()}" 
67                message=entry.getLocaleReminder() 
68                /> 
69            </#if> 
70 
71 
72 
73            <#if entry.isCreationDateVisible()> 
74            <span class="subtext-item"> 
75												<@liferay.language key="on-date" /> 
76 
77												${entry.getCreationDateString()} 
78											</span> 
79        </#if> 
80        </p> 
81 
82        <#if entry.isContentVisible()> 
83        <p class="list-group-subtext"> 
84											<span class="subtext-item"> 
85												${entry.getContent()} 
86											</span> 
87        </p> 
88    </#if> 
89 
90    <#if entry.isFieldsVisible()> 
91    <p class="list-group-subtext"> 
92        <#assign separate = false /> 
93 
94        <#list entry.getFieldDisplayContexts() as fieldDisplayContext> 
95        <#if separate> 
96        &#183; 
97    </#if> 
98 
99    <span class="badge">${fieldDisplayContext.getName()}</span> 
100 
101    <span>${fieldDisplayContext.getValuesToString()}</span> 
102 
103    <#assign separate = true /> 
104</#list> 
105</p> 
106</#if> 
107 
108<#if entry.isAssetCategoriesOrTagsVisible()> 
109<h6 class="search-document-tags text-default"> 
110    <@liferay_asset["asset-tags-summary"] 
111    className=entry.getClassName() 
112    classPK=entry.getClassPK() 
113    paramName=entry.getFieldAssetTagNames() 
114    portletURL=entry.getPortletURL() 
115    /> 
116 
117    <@liferay_asset["asset-categories-summary"] 
118    className=entry.getClassName() 
119    classPK=entry.getClassPK() 
120    paramName=entry.getFieldAssetCategoryIds() 
121    portletURL=entry.getPortletURL() 
122    /> 
123</h6> 
124</#if> 
125 
126<#if entry.isDocumentFormVisible()> 
127<h6 class="expand-details text-default"> 
128											<span class="list-group-text" style=""> 
129												<a href="javascript:;"> 
130													<@liferay.language key="details" />... 
131												</a> 
132											</span> 
133</h6> 
134 
135<div class="hide search-results-list table-details table-responsive"> 
136    <table class="table"> 
137        <thead> 
138        <tr> 
139            <th class="key-column"> 
140                <@liferay.language key="key" /> 
141            </th> 
142            <th> 
143                <@liferay.language key="value" /> 
144            </th> 
145        </tr> 
146        </thead> 
147 
148        <tbody> 
149        <#list entry.getDocumentFormFieldDisplayContexts() as fieldDisplayContext> 
150        <tr> 
151            <td class="key-column table-details-content"> 
152                <strong>${htmlUtil.escape(fieldDisplayContext.getName())}</strong> 
153            </td> 
154            <td class="table-details-content"> 
155                <code> 
156                    ${fieldDisplayContext.getValuesToString()} 
157                </code> 
158            </td> 
159        </tr> 
160        </#list> 
161        </tbody> 
162    </table> 
163</div> 
164</#if> 
165</div> 
166</section> 
167</div> 
168<#else> 
169<div class="autofit-col"> 
170    <div class="alert alert-danger"> 
171        <@liferay.language_format 
172        arguments="result" 
173        key="is-temporarily-unavailable" 
174        /> 
175    </div> 
176</div> 
177</#if> 
178</li> 
179</#if> 
180</#list> 
181</#if> 
182</ul> 
183</div> 
184 
185<@liferay_aui.script use="aui-base"> 
186A.one('#search-results-display-list').delegate( 
187'click', 
188function(event) { 
189var currentTarget = event.currentTarget; 
190 
191currentTarget.siblings('.search-results-list').toggleClass('hide'); 
192}, 
193'.expand-details' 
194); 
195</@liferay_aui.script> 

Xuất bản thông tin

Sort