使用liferay-ui taglib的NullPointerException [英] NullPointerException using liferay-ui taglib

查看:151
本文介绍了使用liferay-ui taglib的NullPointerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我的(Liferay 6.1)Portlet中使用liferay-ui:icon-help标记,但是添加了

I'm trying to use the liferay-ui:icon-help tag in my (Liferay 6.1) portlet, but adding

<liferay-ui:icon-help message="help me"/>

给我的edit.jsp给我

to my edit.jsp gives me

ERROR [render_portlet_jsp:154] java.lang.NullPointerException at com.liferay.taglib.ui.IconHelpTag.processEndTag(IconHelpTag.java:57)

我确定我正确导入了标签库,因为其他标签(例如liferay-ui:calendar)也可以正常工作.

I'm sure I imported the taglib correctly because other tags such as liferay-ui:calendar work just fine.

我忘记了什么吗?

IconHelpTag.java:57提示涉及该主题的地方有问题,但是我没有解决这个问题,服务器几乎是开箱即用的.

edit: IconHelpTag.java:57 suggests that there's something wrong involving the theme, but I did not play around with that, the server is pretty much as it came out of the box.

推荐答案

类似于liferay-ui:icon-help标记调用与主题相关的对象,将以下几行添加到您的jsp中:

Looks like the liferay-ui:icon-help tag makes call to a theme related object, add the following lines to your jsp:

<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme"%>
<liferay-theme:defineObjects />

这篇关于使用liferay-ui taglib的NullPointerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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