CommandButton action not invoked when using Tomahawk t:inputFileUpload?

As stated in the Tomahawk documentation you need to register ExtensionsFilter in web. Xml It's the one responsible for parsing multipart/form-data requests and converting the multipart form data parts to normal request parameters and attributes, so that the FacesServlet can continue using them. If you don't register the ExtensionsFilter then the FacesServlet can't do anything because there are no request parameters in order to determine the model values to be updated and actions to be invoked.

As stated in the Tomahawk documentation, you need to register ExtensionsFilter in web.xml. It's the one responsible for parsing multipart/form-data requests and converting the multipart form data parts to normal request parameters and attributes, so that the FacesServlet can continue using them. If you don't register the ExtensionsFilter, then the FacesServlet can't do anything because there are no request parameters in order to determine the model values to be updated and actions to be invoked.

See also: JSF 2.0 File upload - A mini tutorial. Unrelated to the concrete problem, you should really consider using Facelets instead of JSP. It offers so many advantages over JSP, such as templating, composite components and ajax support.

Thanks, I'll try this and post the results. I don't want to mix questions, but I didn't find a way to use tomahawk using Facelets in Netbeans. If anyone can help me with that... – BRabbit27 Oct 27 at 15:19 You're welcome.

The "See also" link shows in detail how to do that. – BalusC Oct 27 at 15:36 Oh My God! This post inspired me haha!

Finally everything's working with Facelets! – BRabbit27 Oct 27 at 16:21.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions