

and simpler to use, and I have a case when I am going to store vCards in a database so a solution to save the file on disk means I have to modify code anyway. I actually copied all the code and tried it.but I got a failure when loading the page. I got some helf from Uploading files with JSF 2.0 and Servlet 3.0 but that solution includes making a custom component and renderer, and is dependant on classes found in Uploading files in Servlet 3.0. The problem is that for what I actually wanted it was not right and one was a little bit overkill. The former blog states that a multipart request to JSF 2 do not work, because it can not extract parameters from that kind of request. It takes the idea from this blog, joined with some from the other blogs mentioned. The reason is probably the one mentioned at this blog: make it work again, I did a solution that I am not happy with but it works.

When extracting the code I noticed it did not work anymore. I had to remake the example a bit since I got question to provide a sample application. And it includes maven which I do not use. Actually for file upload I actually found a couple of blogs describing how to do it the firs I found actually only ( FileUpload with JSF 2 and Servlet 3.0) made a taglib based on the second one. Surfing the net for JSF2 resources can be a tedious task.
