How can I save the file to the server in a directory of my choosing using fileUpload component?
In the reference guide it says:
There are two places where uploaded files are stored:
In the temporary folder
In the RAM
So I deduce that I have to get the stream and output it, am I right? And if so, how can I do it?
I already saw the richfaces-demo and didn't find the answer.
You can get instance of UploadItem: http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/apidoc_framework/org/richfaces/model/UploadItem.html from UploadEvent fired by upload component.
Thanks Nbelaevski! In the richfaces reference guide, this class (UploadedItem) is not mentioned, I wonder why? Because it works closely with the FileUpload component.
The javadoc that you directed me (for the UploadFile) doesn't exist in the provided richfaces bin. Strange, it is not as updated as the online version! but the class file exists in the richfaces api jar.
Sorry, UploadItem class