留言板
permissionChecker cannot be resolved
Daniel Mueller,修改在12 年前。
permissionChecker cannot be resolved
New Member 帖子: 12 加入日期: 11-11-10 最近的帖子
I am trying to use the permissionChecker in a custom portlet but I can't get it to work.
I am having this
followed by this:
in my JSP. But when I try to use this:
it lights up like a christmas tree: permissionChecker and scopeGroupId cannot be resolved. However, when I remove
I get even more errors, e.g. renderResponse cannot be resolved anymore.
My LR version is 6.0.6
I am having this
<%@ taglib uri="http://java.sun.com/portlet_2_0" prefix="portlet" %>
followed by this:
<portlet:defineobjects />
in my JSP. But when I try to use this:
if (permissionChecker.hasPermission(
scopeGroupId, "com.liferay.portlet.blogs.model",
scopeGroupId, "ADD_ENTRY")) {
}
it lights up like a christmas tree: permissionChecker and scopeGroupId cannot be resolved. However, when I remove
<portlet:defineobjects />
I get even more errors, e.g. renderResponse cannot be resolved anymore.
My LR version is 6.0.6
Sandeep Nair,修改在12 年前。
RE: permissionChecker cannot be resolved
Liferay Legend 帖子: 1744 加入日期: 08-11-6 最近的帖子
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<liferay-theme:defineObjects />
Add the above plz
Regards,
Sandeep
<liferay-theme:defineObjects />
Add the above plz
Regards,
Sandeep
Daniel Mueller,修改在12 年前。
RE: permissionChecker cannot be resolved
New Member 帖子: 12 加入日期: 11-11-10 最近的帖子Sandeep Nair:
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<liferay-theme:defineObjects />
Add the above plz
Regards,
Sandeep
brilliant, that solved it for me. didn't realize that there are multiple "defineObject" methods. Thanks alot!