Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

file upload and prevent refresh calling page

 
Vincent Catalano
Greenhorn
Posts: 1
C++ Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic