如何删除使用< liferay:runtime .../>添加的portlet的边框标签 [英] How to remove borders of a portlet added using <liferay:runtime ... /> tag

查看:59
本文介绍了如何删除使用< liferay:runtime .../>添加的portlet的边框标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用标记在JSP中添加自定义portlet,这是代码:

I'm trying to add a custom portlet in a JSP using tag, here is the code:

<liferay-portlet:runtime portletName="customSocialNotifications_WAR"  />

那很好!但是portlet显示了边框,我需要隐藏它们.

That works fine! But the portlet is showing the borders, and I need to hide them.

我试图覆盖CSS,但是随后他删除了门户的所有边框:(

I tried to overwrite CSS, but then he removes all the borders of the portal :(

有什么主意吗?

谢谢!

PD:我正在使用Liferay 6.2 EE;)

PD: I'm using Liferay 6.2 EE ;)

推荐答案

您可以使用与defaultPreferences相同的标记中可用的属性

You can use a attribute available in same tag as defaultPreferences

<%
StringBundler sb = new StringBundler();
sb.append("<portlet-preferences >");
sb.append("<preference>");
sb.append("<name>");
sb.append("portletSetupShowBorders");
sb.append("</name>");
sb.append("<value>");
sb.append("false");
sb.append("</value>");
sb.append("</preference>");
sb.append("</portlet-preferences>");
%>


<liferay-portlet:runtime portletName="customSocialNotifications_WAR"  defaultPreferences="<%=sb.toString()%>"/>

这篇关于如何删除使用&lt; liferay:runtime .../&gt;添加的portlet的边框标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆