RE: liferay theme and liferay portlet taglibs not working in version 7.1

Kevin Neibarger, modified 6 Years ago. Regular Member Posts: 105 Join Date: 2/2/18 Recent Posts
I've noticed that I cannot use the following as I did in 6.2


<%@ 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.. 
Kevin Neibarger, modified 6 Years ago. Regular Member Posts: 105 Join Date: 2/2/18 Recent Posts
Not an issue, figured out it works I was just looking at the incorrect files when exceptions came up..