0

I am developing a web application.In that application i am using HIbernate,spring and JSF framework. i have to use file upload functionality there.But whenever i am trying to use any jar file there for myfaces i am getting some exception in apache tomcat server. i think its just becuase of library conflict.

please help if any one has developed the same functionality using above technologies.

thanks

eeee
  • 1
  • 1
  • 1
  • 1
    "getting some exception" - you want us to guess it? – Bozho Jan 15 '11 at 07:27
  • For your information, exceptions contain information about the cause of the problem. It's not very helpful to ignore them. If you're unable to decipher them, you should rather be sharing them with us so that we can translate them in layman's words. – BalusC Jan 15 '11 at 13:09
  • JSF 2.2 is getting a file upload component. See: [the JIRA ticket](http://java.net/jira/browse/JAVASERVERFACES_SPEC_PUBLIC-802) – Nick Nov 05 '12 at 23:24

2 Answers2

1

Use Tomahawk's <t:inputFileUpload>. See this tutorial for how to do it.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
0

You can use primefaces library and don't forget to add enctype="multipart/form-data" in the form page

Darwin von Corax
  • 5,201
  • 3
  • 17
  • 28