PROBLEM PRETTY MUCH SOLVED!!!!!!!!!!!!!!!!!!! The primary thing I was doing wrong was that I was trying to implement MyFaces and Tomahawk into an older project and it was using the JSP 1.1 specification instead of 2.0.
I created a new project in Borland's JBuilder and specified JSP 2.0. I initially used RI JSF provided by Borland, then substituted MyFaces and Tomahawk. There were a few .tld file issues after the substitution, but after that all went pretty much as layed out on the myfaces.apache website. I didn't need any additional entries in my faces-config.xml file and only the filter entry specified by myfaces.apache in my web.xml file. Of course, the <t: inputFileUpload entry in the .JSP as well as the tag library for tomahawk's <t: extensions In the backing bean, I implemented the import org.apache.myfaces.custom.fileupload.UploadedFile; public class WelcomeBean { private UploadedFile theFile; public UploadedFile getTheFile() { return theFile; } public void setTheFile (UploadedFile theFile) { this.theFile = theFile; } What I'm going to do now, is go back and use RI JSF and see if I can get Tomahawk to work with it alone. I think it should and myfaces.apache says it should. Thanks for all your input and I hope this post helps you and anyone who is having trouble. Again, it seems the JSP 2.0 was the big culprit. Doug JBuilderDoug wrote: > > Has ANYONE been able to get tomahawk 1.1.3 inputFileUpload to work > properly? I've tried in both JBuilder and JDeveloper without success. > > Here's what I've tried: > > 1) Configured libraries for tomahawk-1.1.3.jar and Framework for the t: > taglib (The JBuilder IDE recognizes/displays the t: taglab elements so > does Oracle's JDeveloper) > 2) Included this .jar with my project > 3) Made the .jsp <h:form enctype="multipart/form-data" > 4) Included in the .jsp > <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %> > 5) Entered the <t:inputFileUpload statement.... /> > 6) in my backing bean > a) import org.apache.myfaces.custom.fileupload.UploadedFile; > b) UploadedFile theFile > c) get and set methods for the File. > 7) Placed the ExtensionsFilter in my web.xml file. > > <filter> > <filter-name>MyFacesExtensionsFilter</filter-name> > <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class> > <init-param> > <param-name>maxFileSize</param-name> > <param-value>20m</param-value> > <description>Set the size limit for uploaded files. > Format: 10 - 10 bytes > 10k - 10 KB > 10m - 10 MB > 1g - 1 GB > </description> > </init-param> > </filter> > > <!-- extension mapping for adding <script/>, <link/>, and other resource > tags to JSF-pages --> > <filter-mapping> > <filter-name>MyFacesExtensionsFilter</filter-name> > <!-- servlet-name must match the name of your > javax.faces.webapp.FacesServlet entry --> > <servlet-name>Faces Servlet</servlet-name> > </filter-mapping> > > <!-- extension mapping for serving page-independent resources (javascript, > stylesheets, images, etc.) --> > <filter-mapping> > <filter-name>MyFacesExtensionsFilter</filter-name> > <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> > </filter-mapping> > > It all compiles and runs fine but when my page comes up and I enter a file > [Browse] and submit the form > > NoClassDefFoundError > > org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance()... > org.apache.myfaces.webapp.filter.ExtensionsFilder.doFilter > > I'm not getting any complaints from the IDE for syntax and there are no > errors in the build, but it appears that I'm not able to instantiate the > filter... at least that's what I'm reading from above. > -- View this message in context: http://www.nabble.com/tomahawk-1.1.3-tf2307269.html#a6447637 Sent from the MyFaces - Users mailing list archive at Nabble.com.