This content has been marked as final.
Show 2 replies
-
1. Re: getting list of files from fileUpload component
schradermj11 Apr 15, 2008 12:52 PM (in response to akakunin)There is a pretty good demo at the following URL:
http://livedemo.exadel.com/richfaces-demo/index.jsp
The demo shows how to display the fileUpload component, as well as a preview for what is uploaded. What it doesn't cover is turning the uploaded files into attachments. When you click submit the action should grab the list of Files that exists in the backing bean and add them to your emails attachments. I don't have the javamail API in front of me so I'm unsure what format attachments need to be in, but you should be able to just add the bytes to the email. -
2. Re: getting list of files from fileUpload component
schradermj11 Apr 15, 2008 12:55 PM (in response to akakunin)A better link is:
http://livedemo.exadel.com/richfaces-demo/richfaces/fileUpload.jsf
You will have to download the source to see what the demo is doing in the backing bean I suppose.