You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Vitaly Baranovsky (JIRA)" <je...@portals.apache.org> on 2007/05/22 16:19:16 UTC

[jira] Commented: (JS2-584) enable adding Velocity context objects without recompilation

    [ https://issues.apache.org/jira/browse/JS2-584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497874 ] 

Vitaly Baranovsky commented on JS2-584:
---------------------------------------

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



> enable adding Velocity context objects without recompilation
> ------------------------------------------------------------
>
>                 Key: JS2-584
>                 URL: https://issues.apache.org/jira/browse/JS2-584
>             Project: Jetspeed 2
>          Issue Type: Improvement
>          Components: Assembly/Configuration, Components Core
>    Affects Versions: 2.1-dev, 2.1
>         Environment: any
>            Reporter: Jacek Wi?licki
>            Priority: Minor
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org