0

How to programmatically set values and state of af:inputFile, and then move it to 'Update' state from 'Choose File' state?

I need to retain the previous file selection in the UI after the current context has been refreshed (the UploadedFile info is lost), and all I have is a string content of the previous file selection.

Jasper de Vries
  • 19,370
  • 6
  • 64
  • 102
Jithin_Gokul
  • 61
  • 1
  • 6
  • You can't. Not in ADF not in jsf not even in plain html. That would be a security breach. I need to find the duplicafe. – Kukeltje May 10 '18 at 08:11
  • Although the duplicate is about PrimeFaces, the answer is just as valid for ADF – Kukeltje May 10 '18 at 09:08
  • 1
    Possible duplicate of [How to preset the value of p:fileUpload](https://stackoverflow.com/questions/5847385/how-to-preset-the-value-of-pfileupload) – Kukeltje May 10 '18 at 09:08

0 Answers0