Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 27903 invoked from network); 24 Jan 2007 14:03:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jan 2007 14:03:41 -0000 Received: (qmail 6974 invoked by uid 500); 24 Jan 2007 14:03:37 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 6943 invoked by uid 500); 24 Jan 2007 14:03:37 -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 6932 invoked by uid 99); 24 Jan 2007 14:03:37 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [212.227.126.171] (HELO moutng.kundenserver.de) (212.227.126.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jan 2007 06:03:35 -0800 Received: from [172.23.4.153] (helo=pustefix153.kundenserver.de) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1H9ihv2fG1-000356; Wed, 24 Jan 2007 15:02:35 +0100 Message-Id: <17514100.121781169647355585.JavaMail.servlet@kundenserver> From: "H. Swaczinna" To: Subject: RE: Re: [Tobago] Fileupload doesn't work in popup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 26990028 X-Routing: DE X-Message-Id: <26990028$1169647355585172.23.4.15323808520@pustefix153.kundenserver.de--253781097> X-Received: from pustefix153.kundenserver.de by 194.113.141.55 with HTTP id 26990028 for [users@myfaces.apache.org]; Wed, 24 Jan 2007 15:02:35 CET Date: Wed, 24 Jan 2007 15:02:35 +0100 X-Virus-Checked: Checked by ClamAV on apache.org Hi Volker! >The enctype="multipart/form-data" is missing on html form tag if the >fileInput was not on the initally page. No, that's ok. The enctype="multipart/form-data" is not missing. The fileupload works for example on a tab, which is loaded by Ajax. >Please use a nonAjax popup in the meantime. Hm, I thought nonAjax popups aren't supportet any more? >Another issue with your code: I don't think that it is possible to >upload a file by ajax, you should remove the renderedPartially >attribute from the save button. Ok, this works. Even with an Ajax popup. The renderedPartially on the save button is the problem. But it would be nice, if file upload will work with renderedPartially. Without, the whole page is submitted, not only the file upload. >The renderedPartially attribute on a button with popupClose=immediate >has no effect. Thanks Regards Helmut >2007/1/24, H. Swaczinna : >> Hello, >> >> I want want to do a fileupload in a popup. But I get this error message: >> >> 2007-01-24 12:01:27 http-8080-Processor25 ERROR - >org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.FileRenderer: >90 - Can't process multipart/form-data without TobagoRequest. Please check the >web.xml and define a TobagoMultipartFormdataFilter. See documentation for > >> >> The fileupload works, when it is on the page. >> >> This is the popup: >> >> > image="image/insert.gif"> >> >> >> >> >> >> >> >> >> > value="#{anlagenController.file}"/> >> >> >> > label="#{mainBundle.button_label_save}"> >> >> value=":mainPage:detailView:anlagenView:panel"/> >> >> > label="#{mainBundle.button_label_cancel}"> >> >> value="uploadPopup"/> >> >> >> >> >> >> >> >> Regards >> Helmut >>