-
1. JSF2+RichFaces 4.0: fileUpload
mp911de Apr 27, 2011 11:56 PM (in response to apostle)Hi Pavel,
a4j's application/x-www-form-urlencoded comes from the Ajax-Request. There are other components like Tomahawk that support direct File-Upload (as you defined in your code snippet, see http://ertantoker.blogspot.com/2009/03/fileupload-mit-apache-tomahawk.html). Tomahawk also provides own commandButtons, but multipart/form-data should work with RF4.
Best regards,
Mark
-
2. JSF2+RichFaces 4.0: fileUpload
apostle Apr 28, 2011 7:29 AM (in response to mp911de)Hi, Mark,
thanks for your help. In fact Tomahawk inputFileUpload component works with Richfaces 4, but only with h:commandButton. So, there reason why it did not work for me was about using a4j:commandButton. Now what if I want to show a popup window after user uploaded a file? Is it possible with h:commandButton?
-
3. JSF2+RichFaces 4.0: fileUpload
mp911de Apr 28, 2011 2:24 PM (in response to apostle)1 of 1 people found this helpfulGetting an Event after the Upload is complete is difficult. A good approach would be either to redirect the user to a page where the popup is triggered or setting some property in your model and query the model in a JavaScript on your upload page. Since it's a page submit, you're free to do this.
-
4. JSF2+RichFaces 4.0: fileUpload
apostle Apr 29, 2011 6:03 AM (in response to mp911de)Hi, Mark,
I see your point. Thanks for helping me out.