This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes file upload and prevent refresh calling page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "file upload and prevent refresh calling page" Watch "file upload and prevent refresh calling page" New topic
Author

file upload and prevent refresh calling page

Vincent Catalano
Greenhorn

Joined: Apr 01, 2014
Posts: 1

Hi all,

I have a JSF page (called MainPage) with a commandButton: clicking on it, I open a modal panel with a <Rich:fileUpload> component, related to a listener in corresponding bean.
When I start to upload a file, page MainPage starts to refresh, but I would like to prevent this because it's not necessary.
I tried to "play" with <Rich:fileUpload> property values, but nothing seems to work and I don't know what to do anymore.
Any suggestions about how can I do? Anyone had same problem?
Here is file upload component



and this is the listener



Thanks in advance

Vin
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15959
    
  19

Check the documentation on the RichFaces fileUpload tag. There should be an AJAX option that will update only the interesting parts of the display.

Note, though that you cannot use EL to form an xhtml tag id attribute value. It has to be a constant literal value. It's one of very few attributes that have that limitation.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: file upload and prevent refresh calling page
 
Similar Threads
Custom sizeErrorLabel with maxRequestSize?
How to upload file in jsf using richfaces?
rich FileUpload and reRender
How to enable the user to upload a new File using rich:fileUpload on maximum file size reached error
rich file upload browse button text displaying differently in Chrome browser