[ 
https://issues.apache.org/jira/browse/TILES-542?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13207638#comment-13207638
 ] 

Konrad Garus commented on TILES-542:
------------------------------------

The VelocityAttributeRenderer.params map on supports String values, so it is 
unsuitable. It could be solved by making this Map<String, Object> and adding a 
parameter for the custom engine, or by adding a VelocityEngine field to 
VelocityAttributeRenderer and passing it to the view in commit().

If this is confirmed and desired extension, I could submit a patch.
                
> Inject VelocityEngine into VelocityAttributeRenderer 
> -----------------------------------------------------
>
>                 Key: TILES-542
>                 URL: https://issues.apache.org/jira/browse/TILES-542
>             Project: Tiles
>          Issue Type: Improvement
>          Components: tiles-velocity
>    Affects Versions: 2.2.2
>            Reporter: Konrad Garus
>            Priority: Minor
>
> VelocityAttributeRenderer instantiates VelocityView, which in turn 
> instantiates its own VelocityEngine. There is no way to inject a customized 
> VelocityEngine from outside except for extending VelocityAttributeRenderer 
> and overriding commit().
> There should be an API for passing customized VelocityEngine to the view.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to