I have <p:fileUpload>
<p:fileUpload id="fileUpload"
fileUploadListener="#{uploadBean.handleFileUpload}"
disabled="#{uploadBean.check()}"
mode="advanced"/>
<p:inputText value="#{tag.value}">
<p:ajax update="form"/>
</p:inputText>
Bean
@Named
@ViewScoped
public class UploadBean....
If the tag has the correct value, a window will appear to upload the file.
Every change of value is checked. Using ajax update.
If user adds the files and then modifies the value of the tag, uploadFile element loses selected files and user must select them again.
How I can save state of fileUpload? (Files that user select)