we just implemented a FileUploadUI-element. So far everything works fine, except that the contents of the inputfield (data) from the Element disapears immediately when we press our "save" button, to save data on the server.
Is there any possibility, that the contents of this field stays visible, after presseing a button?
In brief words: no, and for good reason.
I can elaborate further "why", but now just a reminder to you: due to security reasons browser does not allow to use auto-populated values in <input type="file"> HTML control and existing text may confuse user (user sees it, but no file is submitted on next action invocation)
I believe small informational message in MessageArea after file acceptance will make your wire-frame designers and/or business analysts satisfied
I did not exactly get you probelm. I'll try to explain how the file-upload work and you can try to solve the problem then.
The File Upload element is bound to binary context attribute. When you select the file from the front-end and click upload, the file is availabe in binary context attribute. The binary context node is basically a byte array. You can now use java file handling to save the file on the server.
What is the "save" button you are talking about?