This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes Buggy <t:inputFileUpload Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Buggy <t:inputFileUpload " Watch "Buggy <t:inputFileUpload " New topic

Buggy <t:inputFileUpload

Oleg Vakil

Joined: May 25, 2011
Posts: 5
Hello, I am coding upload application and use:
JSF 1.x- 2, Tomcat 6.0/ Firefox
My problem is a misterious behavior of t:inputFileUpload ( an x:inputFileUpload too). My jsp is a rather simple still

<%@taglib uri="" prefix="h"%>
<%@taglib uri="" prefix="f"%>
<%@ taglib uri="" prefix="t" %>
<jsp:useBean id="FileUploadForm" scope="application" class="FUF.FileUploadForm"/>
<title>t:inputFileUpload example</title>
<h:form id="welcomeForm" enctype="multipart/form-data">
<t:inputFileUpload id="fileupload" value=
"#{FileUploadForm.upFile}" size="20" />

<h:commandButton value="Load the file" action=
"#{FileUploadForm.upload}" />
<tutputText value="#{FileUploadForm.result}"

nothing special in upload method, it corresponds to miscellaneous examples.
But with enctype="multipart/form-data" upload method is not calling, I have System.out.println on a top of UPLOAD;
without enctype UPLOAD is calling but FileUploadForm.upFile is null, so I am not able to upload file.
Thanks for any explanations..a lot of thanks. I tried it a lot of times, may be, somebody hav the same problem. Information about problems with t:inputFileUpload is available, but doesnot help to solve a problem.

What is a rteliable alternative to t:inputFileUpload ?
Thanks again

I agree. Here's the link:
subject: Buggy <t:inputFileUpload
Similar Threads
How to store images into mysql using jsf and java coding
502 Bad Gateway error during process
Field display problem
JSF with fileupload and iframe
How to stop page refresh when hit enter button from rich:inputNumberSpinner field?