Details
-
Type:
Bug
-
Status:
Contributed Solution
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 6.1.0 CE GA1
-
Fix Version/s: None
-
Component/s: API, API > JavaScript
-
Labels:None
-
Environment:linux, tomcat 7.0.23, hsql, self-deployed war
-
Liferay Contributor's Agreement:Accept
-
Similar Issues:
Description
If you put $theme.runtime(portletId) in portal-normal.vm of your theme before creating the navigation (by calling #parse ("$full_templates_path/navigation.vm")) the navigation will break.
isSelected() on a navItem will always return false.
The same issue was already closed for 6.0.2RC, see: http://issues.liferay.com/browse/LPS-5242 and http://www.liferay.com/de/community/forums/-/message_boards/message/4111600 but seems to be there again!
Issue Links
- relates
-
LPS-31508
PortalUtil.renderPortlet throws exception "javax.servlet.ServletException: File "/html/common/themes/portlet.jsp" not found" after switching to Liferay CE 6.1.1 GA2
-

I'm using 6.1.1 GA2 and i have the same problem, to resolve the issue change in the VelocityVariableImpl the lines
boolean tilesSelectable = GetterUtil.getBoolean((String)componentContext.getAttribute("selectable"));
themeDisplay.setTilesSelectable(tilesSelectable);
velocityContext.put("tilesSelectable", tilesSelectable);
with these
String selectable = (String) componentContext.getAttribute("selectable");
{ boolean tilesSelectable = GetterUtil.getBoolean(selectable); themeDisplay.setTilesSelectable(tilesSelectable); velocityContext.put("tilesSelectable", tilesSelectable); }if (selectable != null)
Now it works like a sharm