Upload file doesn't show file name until page is refreshed
I am uploading a file using h:inputFile
when i am choosing the file it doesn’t show the file name and i need to refresh the page to make it work
inputfilecode
<h:inputFile id="telecharger#{status.index + 1}" name="telecharger#{status.index + 1}" value="#{uploadAction.files[status.index].uploadedFile}" validator="#{uploadAction.files[status.index].validateFile}" />
Also there is an error that disappears when i am refreshing the page
the message content is
jsf.js?ln=javax.faces:1 [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help, check https://xhr.spec.whatwg.org/.