If you didn't know about it, and if you are allowed to use RichFaces, this component may fit like a glove. Now, if you do need to proceed as you're doing it, you'd better wait for some more feedback...
DJ aspirant, Engineering undergraduate, Tokusatsus addicted, fond of English language and Asia's, Buddhist, blogger, etc. I'll need to insert all these attributes in a Java class and manage to create methods for handling my overwhelming life
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Creating HtmlInputFileUpload in Java code