Details

    • Liferay Contributor's Agreement:
      Accept

      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

          Activity

          Hide
          zxcvb Carlo (Inactive) added a comment -

          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");
          if (selectable != null) {
          boolean tilesSelectable = GetterUtil.getBoolean(selectable);
          themeDisplay.setTilesSelectable(tilesSelectable);
          velocityContext.put("tilesSelectable", tilesSelectable);
          }

          Now it works like a sharm

          Show
          zxcvb Carlo (Inactive) added a comment - 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"); if (selectable != null) { boolean tilesSelectable = GetterUtil.getBoolean(selectable); themeDisplay.setTilesSelectable(tilesSelectable); velocityContext.put("tilesSelectable", tilesSelectable); } Now it works like a sharm
          Hide
          kristoffer.onias Kristoffer Onias added a comment -

          Carlo commented a solution above

          Show
          kristoffer.onias Kristoffer Onias added a comment - Carlo commented a solution above
          Hide
          edward.gonzales Edward Gonzales (Inactive) added a comment -

          Hi Carlo! Thanks for providing a solution to this bug! Please post a github commit link on this ticket so that we can take care of this as soon as we can. Thanks so much for your effort!

          Show
          edward.gonzales Edward Gonzales (Inactive) added a comment - Hi Carlo! Thanks for providing a solution to this bug! Please post a github commit link on this ticket so that we can take care of this as soon as we can. Thanks so much for your effort!
          Hide
          edward.gonzales Edward Gonzales (Inactive) added a comment -

          Hi Carlo! Thanks again for providing a solution. A github commit link is not necessary, but please test against the latest Milestone 5 http://www.liferay.com/community/wiki/-/wiki/Main/BugSquad+-+Liferay+Portal+6.2+CE+Milestone+5+Testing

          Thanks Carlo!

          Show
          edward.gonzales Edward Gonzales (Inactive) added a comment - Hi Carlo! Thanks again for providing a solution. A github commit link is not necessary, but please test against the latest Milestone 5 http://www.liferay.com/community/wiki/-/wiki/Main/BugSquad+-+Liferay+Portal+6.2+CE+Milestone+5+Testing Thanks Carlo!
          Hide
          james.schueler Harrison Schueler (Inactive) added a comment -

          LPS-31508 resolves the issue for me in my testing in 6.1.x.

          Show
          james.schueler Harrison Schueler (Inactive) added a comment - LPS-31508 resolves the issue for me in my testing in 6.1.x.

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 29 weeks, 1 day ago

                Development

                  Subcomponents