[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-2432) PortletRequestDispatcher does not execute 'forward' method during resource request.
Alexander Smirnov (JIRA)
jira-events at lists.jboss.org
Tue Jul 14 15:55:29 EDT 2009
PortletRequestDispatcher does not execute 'forward' method during resource request.
-----------------------------------------------------------------------------------
Key: JBPORTAL-2432
URL: https://jira.jboss.org/jira/browse/JBPORTAL-2432
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core
Environment: Jboss Portal 2.7 built from http://anonsvn.jboss.org/repos/portal/branches/JBoss_Portal_Branch_2_7 revision 13553 / Jboss AS 4.2.3.GA
Reporter: Alexander Smirnov
By default, GenericFacesPortlet uses PortletRequestDispatcher.forward method to serve resources during resource requests. The code is:
/**
* Default resource serving.
* <p>
* The default implemention of this method is to call a
* RequestDispatcher.foward with the ResourceID of the ResourceRequest.
* <p>
* If no ResourceID is set on the resource URL the default implementation
* does nothing.
*
* @since 2.0
*/
public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
if (request.getResourceID() != null) {
PortletRequestDispatcher rd = getPortletConfig().getPortletContext().getRequestDispatcher(
request.getResourceID());
if (rd != null)
rd.forward(request, response);
}
}
Never that code nor custom portletBridge code that uses 'forward' method doesn't work in Jboss Portal but works properly in other Portlet 2.0 implementations.
The same PortletRequestDispatcher.forward method works properly during render request.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list