JSF interjects itself heavily into the form submit process, so normal J2EE file upload logic is difficult. The easiest way to do file upload in JSF is either to use one of the extension tagsets such a Apache Tomahawk, RichFaces, PrimeFaces, and so forth. An alternative is to upgrade your webapp to use JSF version 2.2 (which may require a server upgrade). In JSF 2.2 an h:fileUpload tag was finally added to the core JSF tagset.
Incidentally, here's a recommendation for coding:
The advantages are that you don't risk getting hurt by accidentally mis-matched backslashes and that your code becode less dependent on which OS you are running your webapp under.
An IDE is no substitute for an Intelligent Developer.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads