[
https://issues.jboss.org/browse/RF-11055?page=com.atlassian.jira.plugin.s...
]
Balazs Zsoldos updated RF-11055:
--------------------------------
Attachment: fileupload_based_on_externalcontext.patch
Here is a patch that makes file upload using ExternalContext instead of playing with
HttpServletRequests and ServletSessions.
The solution was tested on Glassfish 3.1 with the Showcase example and also on Liferay
portal 6.0.6 with JBoss portletbridge (that contained a patch that I will upload today to
the jira of portletbridge)
There is only one portlet specific solution here: When the inputStream is asked if the
request is not a httpServletRequest the code uses reflection and call
"getPortletInputStream" based on portlet specification 2.0. This is the only one
portlet related line in the whole patch.
Make fileupload portlet enabled
-------------------------------
Key: RF-11055
URL:
https://issues.jboss.org/browse/RF-11055
Project: RichFaces
Issue Type: Enhancement
Security Level: Public(Everyone can see)
Components: component
Affects Versions: 4.0.0.Final
Environment: Liferay 6.0.6, JBoss portletbridge 3.0, Richfaces 4.0.Final
Reporter: Balazs Zsoldos
Attachments: fileupload_based_on_externalcontext.patch
Currently FileUploadFacesContextFactory and in related classes depend on
HttpServletRequest and HttpServletResponse and HttpSession that make it impossible to let
it work in portal environments.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira