struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rainer Hermanns (JIRA)" <j...@apache.org>
Subject [jira] Commented: (WW-2678) portlet dispatching after action phase renders in wrong namespace
Date Mon, 23 Jun 2008 12:32:06 GMT

    [ https://issues.apache.org/struts/browse/WW-2678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44277#action_44277
] 

Rainer Hermanns commented on WW-2678:
-------------------------------------

Ups, you are correct... will fix this immediately...

> portlet dispatching after action phase renders in wrong namespace
> -----------------------------------------------------------------
>
>                 Key: WW-2678
>                 URL: https://issues.apache.org/struts/browse/WW-2678
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Portlet
>            Reporter: Herbert Poul
>            Assignee: Rainer Hermanns
>            Priority: Minor
>             Fix For: 2.1.3
>
>         Attachments: portlet-result-namespace.patch
>
>
> when using the 'dispatcher' result (PortletResult) in the action phase the actual dispatching
is postponed to render phase.. the problem with this is that links not explicitly stating
the namespace get rendered with the default namespace (<s:url action="someAction" />
is simply 'someAction' instead of 'currentNamespace/someAction') - of course it would be best
to simply use 'redirect' in the action phase. but this won't work for validation :(
> this could be easily workarounded by invoking the action: invocation.getProxy().getNamespace()
+ "/renderDirect" instead of just "renderDirect" - since most packages are extending "struts-portlet-default"
the action should be inherited .. and the default namespace for URLs is now the current one
..

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


Mime
View raw message