myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leonardo Uribe <lu4...@gmail.com>
Subject Re: 2.2.0 and multipart
Date Wed, 26 Feb 2014 01:52:19 GMT
Hi

I can confirm a simple example using MyFaces 2.2.0 works. See:

http://jsflive.wordpress.com/2013/04/23/jsf22-file-upload/

I think the problem is caused by some kind of incompatibility from
primefaces p:fileUpload. h:inputFile relies on servlet 3.0 spec, but
p:fileUpload could still use the filter approach, so you need to put a
filter on top of faces servlet to handle the multipart request.

Theoretically, nothing has changed, or at least at first view I cannot
see a problem in MyFaces besides the issues we have already fixed, so
2.2.0 should not have any problem.

It could be great if you can provide an example webapp showing the
problem, so we can take a look with the debugger and see if there is a
problem from primefaces or from myfaces. For now the evidence I have
suggest MyFaces is ok.

regards,

Leonardo Uribe

2014-02-25 10:36 GMT-05:00 Leonardo K. Shikida <shikida@gmail.com>:
> Thanks
> Em 25/02/2014 12:20, "Howard W. Smith, Jr." <smithh032772@gmail.com>
> escreveu:
>
>> On Tue, Feb 25, 2014 at 3:20 AM, Werner Punz <werner.punz@gmail.com>
>> wrote:
>>
>> > Am 22.02.14 02:58, schrieb Leonardo K. Shikida:
>> >
>> >  Hi
>> >>
>> >> Just noticed this thread about tomee, myfacs 2.2.0 and multipart request
>> >>
>> >> stackoverflow.com/questions/21948228/how-to-get-jsf-file-
>> >> upload-to-work-on-tomee-1-6
>> >>
>> >> does anyone know if between 2.1.13 and 2.2.0, multipart request has got
>> >> any
>> >> new bug? could not find anything in JIRA
>> >>
>> >> the guy who posted the stackoverflow question tested with
>> >>
>> >> h:commandButton while I've reproduced the problem just switching
>> >> myfaces jars from vanilla tomee 1.6.0 from 2.1.13 to 2.2.0 and using
>> >> p:fileUpload
>> >>
>> >> []
>> >>
>> >> Leo
>> >>
>> >>  Hi this could be a new bug, we introduced a fileupload handling with
>> JSF
>> > 2.2 (the h:inputFile tag) maybe the normal multipart request handling was
>> > broken by the extensions done in this area the best bet is to file a
>> > bugreport in the myfaces bugtracker https://issues.apache.org/
>> > jira/browse/MYFACES
>> >
>> > Werner
>> >
>> >
>> > +1 thanks Leonardo for informing the user list about this issue. I am
>> using MyFaces 2.2 (and/via TomEE 1.6.1 snapshot) with my JSF web
>> application, and I confirmed this bug/issue too in my app. PrimeFaces 4.x
>> (simple) fileUpload is no longer working. :(
>>
>> maybe, it can/should be confirmed if MyFaces 2.2 (basic/simple) fileUpload
>> works as designed/expected. i have not tested that though/yet.
>>

Mime
View raw message