Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with t:inputFileUpload

 
kkk sivam
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My form contains other components that require validation and
several fileUpload components. If there is a validation error after
submitting the form, the file path is lost in all fileUpload components
and I have to browse again to specify the files to upload. Is there a
way to keep this from happening.

Thanks in advance,
kksb
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the HTML specification already prohibits that (prefilling of the input type="file" element). So JSF can't do much for you here.

This is prohibited by the HTML specification to prevent clients from eventual malicious websites which prefills an input type="file" element with for example "c:/user/passwords.txt" and automatically submits the form on load using Javascript.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic