File upload listener not called

UI Components for JSF
kondwani
Posts: 2
Joined: 17 Feb 2015, 14:27

17 Feb 2015, 14:31

andyba wrote:This is not a PrimeFaces issue.

You didn't set your upload up correctly: that is why I suggest you check the Showcase out and provided you with the URL too.

I also referred you to the User Guide.

I can assure you that fileUpload works in 3.3.1 because I use it productively and it also happens to work in the showcase too.
I have a similar issue... Have you tried loading a file the first time then replacing it with a new File (on a FileUpload Dialog)?

The issue is that "broadcast(FacesEvent)" appears to only be called on first invocation till the whole form is refreshed...

This is not what I would expect as default behaviour... This is definitely a bug - btw I'm on Primefaces 4.0

thogau
Posts: 14
Joined: 11 Oct 2012, 18:31

20 Sep 2018, 12:58

I had the same problem on tomcat and solved it by adding allowCasualMultipartParsing="true" in META-INF/context.xml :

Code: Select all

<Context allowCasualMultipartParsing="true">
</Context>
Hope it helps.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests