Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 74707 invoked from network); 9 May 2007 23:35:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 23:35:38 -0000 Received: (qmail 36120 invoked by uid 500); 9 May 2007 23:35:40 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 36082 invoked by uid 500); 9 May 2007 23:35:39 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 36071 invoked by uid 99); 9 May 2007 23:35:39 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 16:35:39 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 16:35:32 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Hlvge-0000pi-02 for users@myfaces.apache.org; Wed, 09 May 2007 16:35:12 -0700 Message-ID: <10404815.post@talk.nabble.com> Date: Wed, 9 May 2007 16:35:11 -0700 (PDT) From: adrianis To: users@myfaces.apache.org Subject: Re: How do you make work? In-Reply-To: <8427096.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: adrianarozo@gmail.com References: <9FC13A268225B946A0EA98D3A5C8A19401EDCE1B@PUNITPMSG02.ad.infosys.com> <8427096.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm new trying to use tomahawk, cause I need the inputFileUpload tag. I have the same problem, UploadedFile is null. I am using: 1. tomahawk-1.1.5 2. I didn't find the commons-fileupload-1.0.jar, so, I'm using the commons-fileupload-1.2.jar 3. I'm not using myfaces, here at work we use the Sun JSF 1.1(RI) 4. I'm using the property enctype="multipart/form-data" in the form tag!! And the same thing, when the page is submitted the setter method for the UploadedFile object doesn't get called. But I noticed something weird:: when I view the page source, the form stills being: enctype="application/x-www-form-urlencoded" I don't know if I'm doing something wrong, and the enctype description says in the tld: Content type used to submit the form to the server. If not specified, the default value is "application/x-www-form-urlencoded" Thanks, -- Adrianis Sam Wang wrote: > > > > Madhav Bhargava-2 wrote: >> >> >> Hi All, >> >> >> >> >> I have been desperately trying to make component >> work but I am facing a weird problem. >> >> >> >> >> JSP code: >> >> > accept="image/*" storage="file" maxlength="200000"/> >> >> >> >> >> >> Managed bean code: >> >> private UploadedFile upFile; >> >> Getter and Setter methods for the same have been created as well. >> >> >> >> >> When the page is submitted then the setter method for upFile does not >> get called. There are other fields on the form for which the values are >> set properly. The only property that always comes "null" is upFile. >> >> >> >> >> Why will the setter method not get called? >> >> >> >> >> Any help!! >> >> >> >> >> Rgds, >> >> Madhav >> >> >> >> **************** CAUTION - Disclaimer ***************** >> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended >> solely for the use of the addressee(s). If you are not the intended >> recipient, please notify the sender by e-mail and delete the original >> message. Further, you are not to copy, disclose, or distribute this >> e-mail or its contents to any other person and any such actions are >> unlawful. This e-mail may contain viruses. Infosys has taken every >> reasonable precaution to minimize this risk, but is not liable for any >> damage you may sustain as a result of any virus in this e-mail. You >> should carry out your own virus checks before opening the e-mail or >> attachment. Infosys reserves the right to monitor and review the content >> of all messages sent to or from this e-mail address. Messages sent to or >> from this e-mail address may be stored on the Infosys e-mail system. >> ***INFOSYS******** End of Disclaimer ********INFOSYS*** >> > > remender to add a property in form tag as below: > > enctype="multipart/form-data" > -- View this message in context: http://www.nabble.com/How-do-you-make-%3Ct%3AinputFileUpload%3E-work--tf3032771.html#a10404815 Sent from the MyFaces - Users mailing list archive at Nabble.com.