2 Replies Latest reply: Dec 22, 2011 2:12 AM by Marco Altieri RSS

    Javascript dependency in soy template bug?

    Marco Altieri

      I hope that is correct to post this discusssion in the Partner space.

       

      I'm trying to include in a custom soy template a dependency with a custom javascript included in the script folder of my plugin.

      To be more clear, in my plugin there are the following files:

      1. ./pom.xml
      2. ./src
      3. ./src/main
      4. ./src/main/assembly
      5. ./src/main/assembly/assembly-plugin.xml
      6. ./src/main/java
      7. SOME JAVA CODE...
      8. ./src/main/java/snippet
      9. ./src/main/plugin
      10. ./src/main/plugin/cache-config.xml
      11. ./src/main/plugin/plugin.xml
      12. ./src/main/plugin/resources
      13. ./src/main/plugin/resources/images
      14. ./src/main/plugin/resources/script
      15. ./src/main/plugin/resources/script/apps
      16. ./src/main/plugin/resources/script/apps/activity_stream
      17. ./src/main/plugin/resources/script/apps/activity_stream/xxx_activity_stream_controller.js
      18. ./src/main/plugin/resources/script/apps/activity_stream/views
      19. ./src/main/plugin/resources/script/apps/activity_stream/views/xxx_activity_stream_list_view.js
      20. ./src/main/plugin/resources/script/jquery-ui-1.8.16.custom.min.js
      21. ./src/main/plugin/resources/script/spaceactivities_widget.js
      22. ./src/main/plugin/resources/script/views
      23. ./src/main/plugin/resources/script/views/activity_stream_item_view.js
      24. ./src/main/plugin/resources/script/views/stream_list_common_view.js
      25. ./src/main/plugin/resources/styles
      26. ./src/main/plugin/resources/styles/spaceactivities.css
      27. ./src/main/plugin/resources/templates
      28. ./src/main/plugin/resources/templates/spaceactivities.ftl
      29. ./src/main/plugin/resources/templates/spaceactivities_widget.soy
      30. ./src/main/plugin/resources/version.txt
      31. ./src/main/plugin/schema.xml
      32. ./src/main/plugin/spring.xml
      33. ./src/main/plugin/struts.xml
      34. ./src/main/resources
      35. ./src/main/resources/plugin_i18n.properties

       

      I'm trying to add in spaceactivities_widget.soy a dependency on ./src/main/plugin/resources/script/apps/activity_stream/views/xxx_activity_stream_list_view.js :

       

      {namespace jive.widget.spaceactivities.soy}

      /**

      * template for the spaceactivities widget.

      *

      * @depends template=jive.eae.activitystream.*

      * @depends template=jive.shared.displayutil.*

      * @depends path=/plugins/spaceactivities/resources/script/apps/activity_stream/views/xxx_activity_stream_list_view.js

      *

      */

       

      Unfortunately it doesn't work.

      The html contains the following inclusion:

       

      <script type="text/javascript" src="/5.0.1/plugins/plugins/plugins/spaceactivities/resources/script/apps/activity_stream/views/xxx_activity_stream_list_view.js"></script>

       

      Is there something wrong with the depends that I have used? Or is it a Jive bug?

       

      Thank you