p:fileUpload disappear after update

Components, Ajax Framework, Utilities and More.
Post Reply
paco_online
Posts: 19
Joined: 15 Jul 2010, 21:53

10 Dec 2011, 22:42

Hi,

i have a p:fileUpload on my page and want to update the component after a file is uploaded. To disable the upload-button in case of e.g. 3 files already uploaded (see my XHTML code).

Code: Select all

<p:fileUpload fileUploadListener="#{myUploadBacking.handleFileUpload}" 
    mode="advanced"
    update="@this"
    auto="true" 
    sizeLimit="1048576"
    disabled="#{myUploadBacking.uploadDisabled}"
    allowTypes="/(\.|\/)(pdf|gif|jpe?g|png)$/" 
/>
But after a file upload - the p:fileUpload disappear because of the update="@this".

Thanks for helping

Greetings Chris

paco_online
Posts: 19
Joined: 15 Jul 2010, 21:53

11 Dec 2011, 07:09

Hi all,

i forgot to post my environment ... here it is

My environment:

- Apache Tomcat v7.0.19-x64
- 3.0.RC1-SNAPSHOT
- Jsf version 2.1.5
- I am deploying my local web-app with JRebel
- IDE Eclipse: Version Helios Service Release 2


Greetings Chris

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

11 Dec 2011, 13:50

Go to www.google.com and search for the following:

forum.primefaces.org p:fileupload

there have been a lot of posts in the recent past about p:fileupload, and you might find your answer that way. If so, please update your post here with what solved your problem, so others can refer to the solution to this behavior you're experiencing.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

Chasy Adler
Posts: 3
Joined: 10 Dec 2015, 10:39

18 May 2017, 15:15

Hi,

I can't find any answer for this exact problem and I tried all the solutions that was related to p:fileUpload.
Can you help me?

Thanks!

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests