freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Woonsan Ko (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FREEMARKER-55) FM3 freemarker-spring module, Web MVC support
Date Thu, 13 Jul 2017 22:09:00 GMT

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

Woonsan Ko edited comment on FREEMARKER-55 at 7/13/17 10:08 PM:
----------------------------------------------------------------

Yeah, {{org.springframework.web.servlet.view.AbstractTemplateView}} puts the {{RequestContext}}
object (by name of {{springMacroRequestContext}}) into {{model}}.
As our {{FreemarkerView}} extends it, the attribute should still exist as well in the model.

Also, it reminds me that at the moment I probably decided to put {{Request}}, {{Session}},
and {{Application}} variables just like the {{org.springframework.web.servlet.view.freemarker.FreeMarkerView.buildTemplateModel(Map<String,
Object>, HttpServletRequest, HttpServletResponse)}} does.



was (Author: woon_san):
Yeah, {{org.springframework.web.servlet.view.AbstractTemplateView}} puts the {{RequestContext}}
object (by name of {{springMacroRequestContext}}) into {{model}}.
As our {{FreemarkerView}} extends it, the attribute should still exist as well in the model.

> FM3 freemarker-spring module, Web MVC support
> ---------------------------------------------
>
>                 Key: FREEMARKER-55
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-55
>             Project: Apache Freemarker
>          Issue Type: Task
>    Affects Versions: 3.0.0
>            Reporter: Daniel Dekany
>
> Add Spring "Web MVC framework" functionality to freemarker-spring.
> This can be complex task (and the issue possibly has to be subdivided), as it involves
things like:
> * Some aspects of the FreeMarker 2 integration (developed by the Spring developers) are
quite confusing ({{FreemarerConfigurer}}, etc.), and we are looking into if it needs to be
like that.
> * See if we can support {{@EnableWebMvc}} (note that FreeMarker 2 support is hard coded
into {{ViewResolverRegistry}}, which we can't modify)
> * Creating custom directives/methods to expose Spring features like the Spring JSP Tag
Library does (but in a way that firs FreeMarker better)
> * Expose JSP custom tag support from the {{freemarker-servlet}} module.
> Depends on: FREEMARKER-54



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message