You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Sami Dalouche (JIRA)" <ji...@apache.org> on 2008/10/18 23:27:37 UTC

[jira] Created: (WW-2841) Sitemesh should share the custom freemarker Manager

Sitemesh should share the custom freemarker Manager 
----------------------------------------------------

                 Key: WW-2841
                 URL: https://issues.apache.org/struts/browse/WW-2841
             Project: Struts 2
          Issue Type: Bug
            Reporter: Sami Dalouche


How to reproduce :

- Define a custom freemarker manager (in spring, for instance, called "customFreemarkerManager")
<constant name="struts.freemarker.manager.classname" value="customFreemarkerManager" />

- Use sitemesh

in any page's view, 
<#assign test="value" />

in Sitemesh decorator :
${test}

=> it will fail, since sitemesh and struts do not share the same freemarker manager.

Struts should configure sitemesh freemarker page filter to use the same freemarker manager by default, or if impossible, should document how to share it.
(is it even possible to share the freemarker manager ??)

regards,
sami dalouche


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


[jira] Updated: (WW-2841) Sitemesh should share the custom freemarker Manager

Posted by "James Holmes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Holmes updated WW-2841:
-----------------------------

    Fix Version/s: Future

Marking as Future for now until further review. It appears from the comments this may not even be possible.

> Sitemesh should share the custom freemarker Manager 
> ----------------------------------------------------
>
>                 Key: WW-2841
>                 URL: https://issues.apache.org/struts/browse/WW-2841
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Sami Dalouche
>             Fix For: Future
>
>
> How to reproduce :
> - Define a custom freemarker manager (in spring, for instance, called "customFreemarkerManager")
> <constant name="struts.freemarker.manager.classname" value="customFreemarkerManager" />
> - Use sitemesh
> in any page's view, 
> <#assign test="value" />
> in Sitemesh decorator :
> ${test}
> => it will fail, since sitemesh and struts do not share the same freemarker manager.
> Struts should configure sitemesh freemarker page filter to use the same freemarker manager by default, or if impossible, should document how to share it.
> (is it even possible to share the freemarker manager ??)
> regards,
> sami dalouche

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


[jira] Commented: (WW-2841) Sitemesh should share the custom freemarker Manager

Posted by "Christian Wolfgang Stone (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-2841?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46949#action_46949 ] 

Christian Wolfgang Stone commented on WW-2841:
----------------------------------------------

This should work if you use the FreemarkerPageFilter included as part of the struts2-sitemesh plugin instead of the SiteMeshFilter provided by SiteMesh.  I have built a new FreemarkerPageFilter which is compatible with SiteMesh 2.4.2 if you are interested.  It is currently submitted as a patch for the 2.2 release of Struts 2.

Please see WW-3291 for more details...


> Sitemesh should share the custom freemarker Manager 
> ----------------------------------------------------
>
>                 Key: WW-2841
>                 URL: https://issues.apache.org/struts/browse/WW-2841
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Sami Dalouche
>             Fix For: Future
>
>
> How to reproduce :
> - Define a custom freemarker manager (in spring, for instance, called "customFreemarkerManager")
> <constant name="struts.freemarker.manager.classname" value="customFreemarkerManager" />
> - Use sitemesh
> in any page's view, 
> <#assign test="value" />
> in Sitemesh decorator :
> ${test}
> => it will fail, since sitemesh and struts do not share the same freemarker manager.
> Struts should configure sitemesh freemarker page filter to use the same freemarker manager by default, or if impossible, should document how to share it.
> (is it even possible to share the freemarker manager ??)
> regards,
> sami dalouche

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