You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Dushyant Pandya (JIRA)" <ji...@apache.org> on 2009/04/13 22:39:06 UTC

[jira] Created: (WW-3087) PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result

PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result 
-------------------------------------------------------------------------------------------------------------------------------------

                 Key: WW-3087
                 URL: https://issues.apache.org/struts/browse/WW-3087
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.0.11.2
         Environment: Any Environment
            Reporter: Dushyant Pandya


When a portlet is targetted for an "event" and if the targeted action forwards to a freemarker result then the DirectRenderFromEventAction is executed in the consecutive "render" request and the DirectRenderFromEventAction relies on the RENDER_DIRECT_LOCATION i.e., "struts.portlet.renderDirectLocation" on the session to execute the freemarker template. The "PortletFreemarkerResult" class never puts the "location" into the session and hence the DirectRenderFromEventAction is not able to execute the Freemarker result and throws PortletException.  

The fix would be to put following two lines in the "executeActionResult(String,ActionInvocation)" method of the "org.apache.struts2.views.freemarker.PortletFreemarkerResult" class

        Map sessionMap = invocation.getInvocationContext().getSession();
        sessionMap.put(PortletActionConstants.RENDER_DIRECT_LOCATION, location);


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


[jira] Updated: (WW-3087) PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result

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

Nils-Helge Garli updated WW-3087:
---------------------------------

    Fix Version/s: 2.1.7

> PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result 
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3087
>                 URL: https://issues.apache.org/struts/browse/WW-3087
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11.2
>         Environment: Any Environment
>            Reporter: Dushyant Pandya
>             Fix For: 2.1.7
>
>
> When a portlet is targetted for an "event" and if the targeted action forwards to a freemarker result then the DirectRenderFromEventAction is executed in the consecutive "render" request and the DirectRenderFromEventAction relies on the RENDER_DIRECT_LOCATION i.e., "struts.portlet.renderDirectLocation" on the session to execute the freemarker template. The "PortletFreemarkerResult" class never puts the "location" into the session and hence the DirectRenderFromEventAction is not able to execute the Freemarker result and throws PortletException.  
> The fix would be to put following two lines in the "executeActionResult(String,ActionInvocation)" method of the "org.apache.struts2.views.freemarker.PortletFreemarkerResult" class
>         Map sessionMap = invocation.getInvocationContext().getSession();
>         sessionMap.put(PortletActionConstants.RENDER_DIRECT_LOCATION, location);

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


[jira] Resolved: (WW-3087) PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result

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

Nils-Helge Garli resolved WW-3087.
----------------------------------

    Resolution: Fixed

Should be fixed in trunk. 

> PortletFreemarkerResult not putting "location" to session and DirectRenderFromEventAction not able to forward to a freemarker result 
> -------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3087
>                 URL: https://issues.apache.org/struts/browse/WW-3087
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11.2
>         Environment: Any Environment
>            Reporter: Dushyant Pandya
>             Fix For: 2.1.7
>
>
> When a portlet is targetted for an "event" and if the targeted action forwards to a freemarker result then the DirectRenderFromEventAction is executed in the consecutive "render" request and the DirectRenderFromEventAction relies on the RENDER_DIRECT_LOCATION i.e., "struts.portlet.renderDirectLocation" on the session to execute the freemarker template. The "PortletFreemarkerResult" class never puts the "location" into the session and hence the DirectRenderFromEventAction is not able to execute the Freemarker result and throws PortletException.  
> The fix would be to put following two lines in the "executeActionResult(String,ActionInvocation)" method of the "org.apache.struts2.views.freemarker.PortletFreemarkerResult" class
>         Map sessionMap = invocation.getInvocationContext().getSession();
>         sessionMap.put(PortletActionConstants.RENDER_DIRECT_LOCATION, location);

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