ui:upload -
Hello,
I have this upload component on my page:
<ui:upload binding="#{insert.fileUpload1}" id="fileUpload1"
uploadedFile="#{insert.uploadedIndex}"/>
The problem is that it does not work as expected. When I try to upload
a file, nothing happens.
I have setters and getters for both fileUpload1 and uploadedIndex.
I have found out that when I choose a file and click the button, the
getUploadedIndex method is called - instead ofsetUploadedIndex.
The method returnsnull (which is correct) and then no other operations
with the file are done.
On the other hand, when I do not choose any file and click the button,
setUploadedIndex is called and then all the page (bean) code proceeds.
Does anyone know where the problem is?

