You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-dev@portals.apache.org by "Alexey Zavizionov (JIRA)" <br...@portals.apache.org> on 2007/04/05 09:25:32 UTC

[jira] Updated: (PB-60) Struts bridge: Will not invoke differ than view mode of portlet in action phase, when ActionPage don't describe for portlet

     [ https://issues.apache.org/jira/browse/PB-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Zavizionov updated PB-60:
--------------------------------

    Summary: Struts bridge: Will not invoke differ than view mode of portlet in action phase, when ActionPage don't describe for portlet  (was: Will not invoke differ than view mode of portlet in action phase, when ActionPage don't describe for portlet)

> Struts bridge: Will not invoke differ than view mode of portlet in action phase, when ActionPage don't describe for portlet
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: PB-60
>                 URL: https://issues.apache.org/jira/browse/PB-60
>             Project: Portals Bridges
>          Issue Type: Bug
>         Environment: tomcat 5.5.17, exo-portlet-container
>            Reporter: Alexey Zavizionov
>
> When I trigger help mode it will not appear, instead that seen view mode.
>         if (defaultActionPage == null)
>             defaultActionPage = defaultViewPage;
> Need to change StrutsPortlet.processAction with:
>     public void processAction(ActionRequest request, ActionResponse response)
>             throws PortletException, IOException
>     {
>       String actionpage = null;
>       if (request.getPortletMode().equals(PortletMode.VIEW))
>         actionpage = defaultViewPage;
>       if (request.getPortletMode().equals(PortletMode.EDIT))
>         actionpage = defaultEditPage;
>       if (request.getPortletMode().equals(PortletMode.HELP))
>         actionpage = defaultHelpPage;
>       if (actionpage == null)
>         actionpage = defaultActionPage;
>       System.out.println(">>> EXOMAN StrutsPortlet.processAction actionpage = " + actionpage);
>       processRequest(request, response, actionpage,
>                 StrutsPortlet.ACTION_REQUEST);
>     }

-- 
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: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org