[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-2432) PortletRequestDispatcher does not execute 'forward' method during resource request.
Julien Viet (JIRA)
jira-events at lists.jboss.org
Fri Oct 2 11:28:49 EDT 2009
[ https://jira.jboss.org/jira/browse/JBPORTAL-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12488263#action_12488263 ]
Julien Viet commented on JBPORTAL-2432:
---------------------------------------
I don't understand this line of code:
PortletRequestDispatcher rd = getPortletConfig().getPortletContext().getRequestDispatcher(
request.getResourceID());
can someone explain me what it is supposed to do ?
> 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
> Assignee: Thomas Heute
>
> 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