function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

inputFile and showing uploaded files



i am having some questions about Modal Dialogs in Visualforce.


I followed the tutorial here and built a modal dialog with an apex:inputFile.

The background of that is:

I am putting together a mail form with extended functionality. The user should be able to upload one ( or more ) files and actually see which files he has uploaded.

The current problem is, that clicking any button on the modal dialog refreshes the whole page, which deletes all previously entered values.

Now, I would like to disable this as a user would first enter the recipient information of the email and select attachments later. Selecting an attachment should not delete the recipient information.


Is this in any way possible to do? Rerendering a list of uploaded files is mainly the problem for me.