You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2006/09/15 19:10:23 UTC

[jira] Commented: (TOMAHAWK-168) Tomahawk not support PortletContext and form with 'multipart/form-data'

    [ http://issues.apache.org/jira/browse/TOMAHAWK-168?page=comments#action_12435039 ] 
            
Mike Kienenberger commented on TOMAHAWK-168:
--------------------------------------------

> Hello, it is a Blocker bug and you don't want to assigned it ?
> I think it would be nice to solve the problem.

This is an opensource project.   Volunteers do all of the work.  It's a blocker for you so you should have the greatest interest in creating a patch.

Note that a workaround to this issue was recently posted on the MyFaces users list.


On 9/13/06, Iordanov, Borislav (GIC) <bo...@miamidade.gov> wrote:
For file upload, the solution is pretty simple. Here is how it works for
me:

a) I'm using commons-fileupload
B) in the processAction portlet method of MyFacesGenericPortlet, I have:

   public void processAction(ActionRequest request, ActionResponse
response)
           throws PortletException, IOException
   {
       if (log.isTraceEnabled()) log.trace("called processAction");

       if (sessionTimedOut(request)) return;

       setPortletRequestFlag(request);

       if (PortletFileUpload.isMultipartContent(request))
               request = new MultipartActionRequestWrapper(request);

       FacesContext facesContext = facesContext(request, response);

// etc...

MultipartActionRequestWrapper is a simple wrapper class I wrote for an
ActionRequest that does the multipart processing based on
commons-fileupload facilities. The rest of the code is the same, relying
on the ActionRequest interface.

> Tomahawk not support PortletContext and form with 'multipart/form-data'
> -----------------------------------------------------------------------
>
>                 Key: TOMAHAWK-168
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-168
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Portlet_Support
>    Affects Versions: 1.1.1
>            Reporter: Serg Maslyukov (http://webmill.askmore.info)
>
> Current imlementation (v1.1.1) of tomahawk not support portlet context and form with  'multipart/form-data'  encoding type.
> this bug affected all actions too. No actions are invoked.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira