Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
liferay theme and liferay portlet taglibs not working in version 7.1
I've noticed that I cannot use the following as I did in 6.2
What is the equivalent in Liferay 7.1? In the code it's telling me user and themeDisplay are not defined or that the compiler cannot find the symbol. There doesn't seem to be documentation on this anywhere..
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %><%@taglib uri="http://liferay.com/tld/portlet" prefix="liferay-portlet" %>
<portlet:defineObjects /><liferay-theme:defineObjects /> <%
Role role = RoleLocalServiceUtil.getRole(user.getCompanyId(), "USER_TYPE");
String[] environment = (String[])themeDisplay.getScopeGroup().getExpandoBridge().getAttribute("Environment");
What is the equivalent in Liferay 7.1? In the code it's telling me user and themeDisplay are not defined or that the compiler cannot find the symbol. There doesn't seem to be documentation on this anywhere..
Not an issue, figured out it works I was just looking at the incorrect files when exceptions came up..
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™