Details

    • Liferay Contributor's Agreement:
      Accept
    • Similar Issues:
      Show 5 results 

      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
          Carlo 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
          Carlo 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 added a comment -

          Carlo commented a solution above

          Show
          Kristoffer Onias added a comment - Carlo commented a solution above
          Hide
          Edward Gonzales 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 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 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 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
          Harrison Schueler (Inactive) added a comment -

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

          Show
          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:
                2 years, 15 weeks, 2 days ago

                Development

                  Structure Helper Panel