0 Replies Latest reply on Oct 24, 2014 11:21 AM by suarem11

    reference JS scrips for each portlet in gatein-resources.xml

    suarem11

      I am trying to reference JS scrips for each portlet in gatein-resources.xml. https://docs.jboss.org/author/display/GTNPORTAL34/GDG-JavaScript+Resource+Management How do I reference them to each portlet? I am trying to use the portlet scope but not sure how to reference them. Is it by name or by path? ie

       

      in example.jsp

       

          <script src="<%=request.getContextPath()%>/js/lib/modules/pagination.js"></script>

       

      in gatein-resources.xml

       

             <portlet>

            <name>/jsp/example.jsp</name>

            <module>

             <script>

              <name>pagination</name>

              <path>/js/lib/modules/pagination.js</path>

              </script>

            </module>

            </portlet>