Primefaces application on karaf

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Primefaces application on karaf

conejo
This post has NOT been accepted by the mailing list yet.
I have built a web application that works on karaf.
It uses primefaces and everything works well except the component that allows uploading files.
I have been reading about it and there may be some configuration problem with jetty and the tag enctype = "multipart / form-data"
Can anyone help me with this?

Thank you very much.
Reply | Threaded
Open this post in threaded view
|

Re: Primefaces application on karaf

conejo
This post has NOT been accepted by the mailing list yet.
I solved it
I must to put this in the web.xml:

                <multipart-config>
                        <location>./tmp</location>
                   <max-file-size>10485760</max-file-size>
                   <max-request-size>20971520</max-request-size>
                   <file-size-threshold>5242880</file-size-threshold>
               </multipart-config>