Jetspeed 2
  1. Jetspeed 2
  2. JS2-584

enable adding Velocity context objects without recompilation

    Details

      Description

      Objects are added to Jetspeed's Velocity context in Template handleRequest(HttpServletRequest HttpServletResponse, Context) of a JetspeedVelocityViewServlet class. If one needs some additional custom classes in Velocity, there's a need to put them in the context programatically and then recompile the portal component (and restart Jetspeed). Additg such objects with something like Spring assembly would be very useful and flexible.

        Activity

        Hide
        Vitaly Baranovsky added a comment -

        So, how about this issue? Is it planned for developing?

        I think, this feature is very useful, because it's only the way to extend functionality in view tier. As far as I know, there is no another way to use utility classes in velocity templates of portal.

        So, if I need extend velocity templates with my own classes, I need recompile org.apache.jetspeed.velocity.JetspeedVelocityViewServlet. But recompiling jetspeed sources isn't a good way.

        When need someone such feature? For example, I need my own title and meta-description of portal pages. It's very critical for our company.

        There is discussion about this: http://www.nabble.com/How-can-I-programmatically-set-my-own-title-of-portal-pages--tf2311799.html

        Show
        Vitaly Baranovsky added a comment - So, how about this issue? Is it planned for developing? I think, this feature is very useful, because it's only the way to extend functionality in view tier. As far as I know, there is no another way to use utility classes in velocity templates of portal. So, if I need extend velocity templates with my own classes, I need recompile org.apache.jetspeed.velocity.JetspeedVelocityViewServlet. But recompiling jetspeed sources isn't a good way. When need someone such feature? For example, I need my own title and meta-description of portal pages. It's very critical for our company. There is discussion about this: http://www.nabble.com/How-can-I-programmatically-set-my-own-title-of-portal-pages--tf2311799.html
        Hide
        David Sean Taylor added a comment -

        Yes, it is a useful feature. I'll try to implement this one unless you want to give it a try..

        Show
        David Sean Taylor added a comment - Yes, it is a useful feature. I'll try to implement this one unless you want to give it a try..
        Hide
        David Sean Taylor added a comment -

        added request-context-objects.xml in Spring config
        which makes a map available called "rco" (request context objects) in the vm context as well as a JSP attribute for Mohan's work on JSP templates

        Show
        David Sean Taylor added a comment - added request-context-objects.xml in Spring config which makes a map available called "rco" (request context objects) in the vm context as well as a JSP attribute for Mohan's work on JSP templates

          People

          • Assignee:
            David Sean Taylor
            Reporter:
            Jacek Wi?licki
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development