You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Serg Maslyukov (http://webmill.askmore.info) (JIRA)" <de...@myfaces.apache.org> on 2006/03/01 20:05:12 UTC

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

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
        Type: Bug
    Versions: 1.1.1    
    Reporter: Serg Maslyukov (http://webmill.askmore.info)
    Priority: Blocker


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


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

Posted by "sebastien marin (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-168?page=comments#action_12374872 ] 

sebastien marin 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.

> 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
>         Type: Bug

>     Versions: 1.1.1
>     Reporter: Serg Maslyukov (http://webmill.askmore.info)
>     Priority: Blocker

>
> 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


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

Posted by "Serg Maslyukov (http://webmill.askmore.info) (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-168?page=comments#action_12435313 ] 
            
Serg Maslyukov (http://webmill.askmore.info) commented on TOMAHAWK-168:
-----------------------------------------------------------------------

This is very simple sollution and not work in most situation because, if you use non declarative action, ypu processAction not invoked.

This code not work with this solution:
<h:form id="foo" enctype="multipart/form-data">

    <h:panelGrid columns="1">

        <h:outputText value="#{msg.xml_format_warning}" styleClass="standard_bold"/>

        <t:inputFileUpload id="fileupload"
                           value="#{priceUploadForm.upFile}"
                           storage="file"
                           styleClass="fileUploadInput"
                           required="true"/>

        <h:commandButton action="#{priceUploadForm.upload}" value="#{msg.upload_action}"/>

        <h:panelGroup rendered="#{priceUploadForm.uploaded}">
            <h:outputText value="#{msg.success_upload}" rendered="#{priceUploadForm.success}"/>
            <h:outputText value="#{msg.error_upload}" rendered="#{not priceUploadForm.success}"/>
        </h:panelGroup>

    </h:panelGrid>

    <h:panelGrid columns="1" rendered="#{fileUploadForm.uploaded}">
        <h:outputText value="filename: #{fileUploadForm.name}"/>
    </h:panelGrid>

</h:form>

> 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, File Upload
>    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

        

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

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ 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

        

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

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
    [ http://issues.apache.org/jira/browse/TOMAHAWK-168?page=comments#action_12435357 ] 
            
Mike Kienenberger commented on TOMAHAWK-168:
--------------------------------------------

Serg,

It's great that you have additional input to add on this topic, but we need to keep the discussion on the mailing list, and leave the bug tracker for reporting issues and providing patches.


> 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, File Upload
>    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