Unfortunately, no there isn't. Though Brian Leathem I'm sure would like to hear your feedback about the upload control in RichFaces.
Such a pain...
And is it planed to make the feature or not ? (Or perhaps I should open a jira for that ?)
It's part of the things that make things really hard to migrate from Seam 2 to 3 because we lose lots of features... Isn't the code in Seam 2 partially re-usable to build the same component in Seam 3 ?
Or perhaps one could take ideas from http://stackoverflow.com/questions/3459743/jsf2-0-simple-file-input...
Thanks for your reply anyway.
1 of 1 people found this helpful
At this point, probably it will not make it into Seam 3. However, it's possible it could in DeltaSpike. Also a great idea would be to add one to the RichFaces sandbox. There's a blog series done by Brian Leathem about using the RichFaces CDK. I've heard there have been quite a few people looking for a simple file upload component. This would be an excellent contribution and help people at the same time.
FWIW, JSF 2.2 (EE7) will have a basic fileupload as a core component.
If you're on a servlet 3.0 container/app server (Tomcat 7 or Jetty 8, AS 7) you already have multi-part form support. You just need to be able to render it in UI. You can use HTML input tag. Don't include any other JSF components in file input form.
When a user select a file and uploads, on server a filter will process the multipart request.
Primefaces has a simple fileUpload component BTW.
I think you must write a simple file upload component yourselft, use Google you will find many post about this topic.
The fileUpload in the Richfaces is too rich,..
I've just created RF-12279 for RichFaces 4.
In the console, I've got some useless "JSF1064: Unable to find or serve resource, inputFileUpload.xhtml, from library, org.apache.myfaces.custom" (in french : "ATTENTION [javax.enterprise.resource.webcontainer.jsf.application] (http--0.0.0.0-8080-4) JSF1064 : Impossible de localiser ou de servir une ressource, inputFileUpload.xhtml, depuis la bibliothèque org.apache.myfaces.custom.").
Has anybody found out how to get rid of this warning?
I switched to Primefaces !
But now, unfortunately, my user css (added with <h:outputStylesheet /> in my page) are added to the header before richfaces styles (and primefaces styles are loaded before everything else).
I think I'm now falling on RF-10973 and checked PrimeFaces and RichFaces compatibility issue and Working towards RichFaces / PrimeFaces compatibility but until now I found no solution to that new problem...