[ https://issues.apache.org/jira/browse/PB-60?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Zavizionov updated PB-60: -------------------------------- Affects Version/s: 1.0.2-dev Summary: Struts bridge: Will not invoke differ than view mode of portlet in action phase, when ActionPage doesn't describe for portlet (was: Struts bridge: 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 doesn't describe for portlet > ----------------------------------------------------------------------------------------------------------------------------- > > Key: PB-60 > URL: https://issues.apache.org/jira/browse/PB-60 > Project: Portals Bridges > Issue Type: Bug > Components: struts > Affects Versions: 1.0.2-dev > Environment: tomcat 5.5.17, exo-portlet-container > Reporter: Alexey Zavizionov > Priority: Critical > > When I trigger help or edit mode it will not appear, instead that I 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; > 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]