Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I make changes in the code but when i use <h:form enctype="multipart/form-data"> then onclick of send button it doesnt call the send function Commented Dec 11, 2011 at 17:35
  • Then still you haven't configured the ExtensionsFilter (it's missing in the stack trace, that's why I mentioned it in my answer as well). Please check the "See also" link. They aren't posted for decoration only. Commented Dec 11, 2011 at 17:47
  • yeh u r right..but now when i click send button, this uploded file is not send to my mail and the code i have used for that is in my send function java file as shown in my question..is anything wrong in my code..error shown is ClassCastException Commented Dec 11, 2011 at 18:03
  • That's a different problem. Ask a new question. Your problem of not being able to upload the file is now solved. Your new problem of not being able to send a file in flavor of InputStream by email is unrelated to JSF/Tomahawk. Commented Dec 11, 2011 at 18:04
  • actually i am casting the uploaded file to java.io.file..so becoz of that it showing class cast exception error.. Commented Dec 11, 2011 at 18:08