This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I was just looking at a portlet I built that does exactly the same thing (except the files are uploaded as opposed to coming from a DB) but I'm using JSF 1.2 so I'm not sure how useful the code would be to you if you're in JSF 2.0.
In my backing bean:
The upload method:
And the relevant part of the view.xhtml
I'm using ICEfaces but the idea is the same for straight JSF.
Joined: May 09, 2011
Nada ... the attachment list is always empty.
maybe why the call is not Ajax?