Notícias do TST Notícias do TST

Um erro ocorreu enquanto processava o modelo.
Method public java.lang.String com.liferay.portlet.asset.model.BaseAssetRenderer.getSummary(java.util.Locale) threw an exception when invoked on com.liferay.portlet.journal.asset.JournalArticleAssetRenderer@658ea070 with arguments of types [java.util.Locale,]
1<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
2 
3<!-- Criando URL amigável --> 
4<#assign targetViewUrl = "web/tst-intranet/noticias-internas1" /> 
5<#assign targetPortletID = "WXYZ" /> 
6 
7<#list entries as entry> 
8 
9	<#assign entry = entry /> 
10 
11	<#assign assetRenderer = entry.getAssetRenderer() /> 
12 
13	<#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
14 
15	<#assign viewURL = "/${targetViewUrl}/-/asset_publisher/${targetPortletID}/content/id/${entry.getEntryId()}" /> 
16 
17    <#assign urlThumb = entry.getAssetRenderer().getThumbnailPath(renderRequest) /> 
18 
19    <#assign urlLength = urlThumb?length> 
20 
21    <#assign imageDefault = urlThumb?substring(urlLength - 11,urlLength)> 
22	 
23	<div class="asset-abstract"> 
24		<div class="lfr-meta-actions asset-actions"> 
25 
26				<@getEditIcon /> 
27		</div> 
28 
29		<div class="asset-content"> 
30 
31			<div class="asset-summary"> 
32				<#if imageDefault != "article.png"> 
33					<div> 
34					    <img src="${urlThumb}"/> 
35					</div> 
36					<div> 
37				<#else> 
38					<div> 
39				</#if> 
40					<div class="asset-title"> 
41						<a href="${viewURL}" title="${entryTitle}">${entryTitle}</a> 
42					</div> 
43					<span class="resumo">		 
44						${htmlUtil.escape(assetRenderer.getSummary(locale))} 
45					</span> 
46				</div> 
47				 
48			</div> 
49		</div>		 
50	</div> 
51 
52</#list> 
53 
54 
55<#macro getEditIcon> 
56	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
57		<#assign redirectURL = renderResponse.createRenderURL() /> 
58 
59		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
60		${redirectURL.setWindowState("pop_up")} 
61 
62		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
63 
64		<#if validator.isNotNull(editPortletURL)> 
65			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
66 
67			<@liferay_ui["icon"] 
68				image="edit" 
69				message=title 
70				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
71			/> 
72		</#if> 
73	</#if> 
74</#macro> 


Conteúdo de Responsabilidade da SECOM  Secretaria de Comunicação Social

Email: secom@tst.jus.br

Telefone: (61) 3043-4907