You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Ate Douma (JIRA)" <je...@portals.apache.org> on 2009/04/07 02:59:14 UTC
[jira] Updated: (JS2-616) Add anchor in portal URL
[ https://issues.apache.org/jira/browse/JS2-616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ate Douma updated JS2-616:
--------------------------
Lets revisit this issue for the 2.2.1 release
> Add anchor in portal URL
> ------------------------
>
> Key: JS2-616
> URL: https://issues.apache.org/jira/browse/JS2-616
> Project: Jetspeed 2
> Issue Type: Improvement
> Components: Components Core
> Reporter: Evangelos Vlachogiannis
> Priority: Minor
>
> I would like to be able to set an anchor in the portal url. This relates to JS2-587 and I have done some quick fix (see below) but this has side effects (when param appear in url it creates something like: http://localhost/jetspeed/....#anc?param=val and the application does not work) and I think it needs a better approach (navigationalstate ??). I think somewhere the url need to check itself and move anchor at the end of the url. Any thoughts?
> ===================================================================
> --- components/portal/src/java/org/apache/jetspeed/container/url/impl/JetspeedPortletURL.java (revision 449944)
> +++ components/portal/src/java/org/apache/jetspeed/container/url/impl/JetspeedPortletURL.java (working copy)
> @@ -30,13 +30,17 @@
> */
> public class JetspeedPortletURL extends PortletURLImpl
> {
> + private String portletAnchor = null;
> public JetspeedPortletURL(PortletWindow portletWindow, HttpServletRequest servletRequest, HttpServletResponse servletResponse, boolean isAction)
> - {
> + {
> super(portletWindow, servletRequest, servletResponse, isAction);
> + // for better accessibility when an action is submitted the portal points to portlet id that submitted the action
> + if(isAction)
> + this.portletAnchor = "#" + portletWindow.getPortletEntity().getId();
> }
>
> public String toString()
> - {
> - return servletResponse.encodeURL(super.toString());
> + {
> + return servletResponse.encodeURL(super.toString()) + this.portletAnchor;
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org