[
https://jira.jboss.org/jira/browse/JBPORTAL-2432?page=com.atlassian.jira....
]
Wesley Hales commented on JBPORTAL-2432:
----------------------------------------
There are no tests for PortletRequestDispatcher.forward and there needs to be a test
assessing that forward should work.
For now we will use the include method as a workaround.
Thomas, can you help out with this or re-assign?
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