Last time, I wrote about how you can use s:fileUpload for uploading files. It seemed straightforward and easy. But when I started implementing the whole code, I couldn't proceed.
I have a page where users can upload files and also can change properties of the file. A file can belong to Folder A, Folder B or Folder C. So, I needed to specify the files properties so that I can retrieve appropriate one. So, I had an a4j:form tag with enctype set to handle s:fileupload and other components(two drop downs and one button). But I was having trouble uploading the files. It was just not uploading.
So, in the end, I ended up taking other components out from the form and have a separate a4j:form. And that works. I don't have explanation for such behaviors. All I can say is that if you put too many components and s:fileUpload into an a4j:form with enctype set to handle s:fileUpload, it just might not work for you.
No comments:
Post a Comment