You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Thomas Delhoménie (JIRA)" <ji...@apache.org> on 2012/08/06 12:27:02 UTC
[jira] [Created] (WW-3861) Using namespace in Portlet URLs does not
work anymore
Thomas Delhoménie created WW-3861:
-------------------------------------
Summary: Using namespace in Portlet URLs does not work anymore
Key: WW-3861
URL: https://issues.apache.org/jira/browse/WW-3861
Project: Struts 2
Issue Type: Bug
Components: Plugin - Portlet
Affects Versions: 2.3.4
Environment: GateIn 3.2
Reporter: Thomas Delhoménie
I just tried the sample portlet apps (http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/).
The link example using a namespace (edit mode -> dummy test) does not work anymore (it used to work in 2.3.3).
The namespace returned by the org.apache.struts2.portlet.util.PortletUrlHelper.buildUrl method does not prepend the portlet mode in this case ("/dummy" instead of "/edit/dummy").
--
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
[jira] [Updated] (WW-3861) Using namespace in Portlet URLs does not
work anymore
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3861:
------------------------------
Fix Version/s: 2.3.5
> Using namespace in Portlet URLs does not work anymore
> -----------------------------------------------------
>
> Key: WW-3861
> URL: https://issues.apache.org/jira/browse/WW-3861
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Portlet
> Affects Versions: 2.3.4
> Environment: GateIn 3.2
> Reporter: Thomas Delhoménie
> Fix For: 2.3.5
>
> Attachments: WW-3861.patch
>
>
> I just tried the sample portlet apps (http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/).
> The link example using a namespace (edit mode -> dummy test) does not work anymore (it used to work in 2.3.3).
> The namespace returned by the org.apache.struts2.portlet.util.PortletUrlHelper.buildUrl method does not prepend the portlet mode in this case ("/dummy" instead of "/edit/dummy").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3861) Using namespace in Portlet URLs does
not work anymore
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444707#comment-13444707 ]
Lukasz Lenart commented on WW-3861:
-----------------------------------
Looks like the example was broken from the beginning. Action must be a simple name, eg. testAction without slashes, in opposite namespace must have define the whole path to the action, eg. /dummy/test.
I'm not sure if /edit prefix must be specified as this is more portlet specific feature :/
> Using namespace in Portlet URLs does not work anymore
> -----------------------------------------------------
>
> Key: WW-3861
> URL: https://issues.apache.org/jira/browse/WW-3861
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Portlet
> Affects Versions: 2.3.4
> Environment: GateIn 3.2
> Reporter: Thomas Delhoménie
> Fix For: 2.3.5
>
> Attachments: WW-3861.patch
>
>
> I just tried the sample portlet apps (http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/).
> The link example using a namespace (edit mode -> dummy test) does not work anymore (it used to work in 2.3.3).
> The namespace returned by the org.apache.struts2.portlet.util.PortletUrlHelper.buildUrl method does not prepend the portlet mode in this case ("/dummy" instead of "/edit/dummy").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WW-3861) Using namespace in Portlet URLs does
not work anymore
Posted by "Thomas Delhoménie (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13445262#comment-13445262 ]
Thomas Delhoménie commented on WW-3861:
---------------------------------------
The example used to work in 2.3.3.
I agree /edit prefix should not be specified. I even think "edit" and "view" terms should not be used for the namespaces in the example as it is not mandatory, this is pretty confusing. They could be replaced by something like "front" and "admin" for example.
Are the "viewNamespace" and "editNamespace" init-param really useful ? They don't seem to be used when generating the urls.
> Using namespace in Portlet URLs does not work anymore
> -----------------------------------------------------
>
> Key: WW-3861
> URL: https://issues.apache.org/jira/browse/WW-3861
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Portlet
> Affects Versions: 2.3.4
> Environment: GateIn 3.2
> Reporter: Thomas Delhoménie
> Fix For: 2.3.5
>
> Attachments: WW-3861.patch
>
>
> I just tried the sample portlet apps (http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/).
> The link example using a namespace (edit mode -> dummy test) does not work anymore (it used to work in 2.3.3).
> The namespace returned by the org.apache.struts2.portlet.util.PortletUrlHelper.buildUrl method does not prepend the portlet mode in this case ("/dummy" instead of "/edit/dummy").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WW-3861) Using namespace in Portlet URLs does not
work anymore
Posted by "Thomas Delhoménie (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Delhoménie updated WW-3861:
----------------------------------
Attachment: WW-3861.patch
The URL params in the JSP can simply be changed to make it work fine.
> Using namespace in Portlet URLs does not work anymore
> -----------------------------------------------------
>
> Key: WW-3861
> URL: https://issues.apache.org/jira/browse/WW-3861
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Portlet
> Affects Versions: 2.3.4
> Environment: GateIn 3.2
> Reporter: Thomas Delhoménie
> Attachments: WW-3861.patch
>
>
> I just tried the sample portlet apps (http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/).
> The link example using a namespace (edit mode -> dummy test) does not work anymore (it used to work in 2.3.3).
> The namespace returned by the org.apache.struts2.portlet.util.PortletUrlHelper.buildUrl method does not prepend the portlet mode in this case ("/dummy" instead of "/edit/dummy").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (WW-3861) Using namespace in Portlet URLs does not
work anymore
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3861:
------------------------------
Fix Version/s: (was: 2.3.5)
2.3.6
> Using namespace in Portlet URLs does not work anymore
> -----------------------------------------------------
>
> Key: WW-3861
> URL: https://issues.apache.org/jira/browse/WW-3861
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Portlet
> Affects Versions: 2.3.4
> Environment: GateIn 3.2
> Reporter: Thomas Delhoménie
> Fix For: 2.3.6
>
> Attachments: WW-3861.patch
>
>
> I just tried the sample portlet apps (http://svn.apache.org/viewvc/struts/struts2/trunk/apps/portlet/).
> The link example using a namespace (edit mode -> dummy test) does not work anymore (it used to work in 2.3.3).
> The namespace returned by the org.apache.struts2.portlet.util.PortletUrlHelper.buildUrl method does not prepend the portlet mode in this case ("/dummy" instead of "/edit/dummy").
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira