Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 54014 invoked from network); 2 Jul 2010 19:59:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jul 2010 19:59:19 -0000 Received: (qmail 6129 invoked by uid 500); 2 Jul 2010 19:59:18 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 6083 invoked by uid 500); 2 Jul 2010 19:59:17 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 6076 invoked by uid 99); 2 Jul 2010 19:59:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 19:59:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jul 2010 19:59:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o62JwrNW013057 for ; Fri, 2 Jul 2010 19:58:53 GMT Message-ID: <30220344.179771278100733356.JavaMail.jira@thor> Date: Fri, 2 Jul 2010 15:58:53 -0400 (EDT) From: =?utf-8?Q?Martin_Ko=C4=8D=C3=AD_=28JIRA=29?= To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-2688) when form is 'multipart/form-data', form component will never process update. In-Reply-To: <13362794.26921272607857686.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-2688?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D12= 884793#action_12884793 ]=20 Martin Ko=C4=8D=C3=AD commented on MYFACES-2688: -------------------------------------- h:inputFile is planned for JSF 2.1: https://javaserverfaces-spec-public.dev= .java.net/issues/show_bug.cgi?id=3D690. I don't know exact plan for 2.1 bu= t first milestone (without inputFile) is here: http://wiki.jcp.org/wiki/ind= ex.php?page=3DJSF+2.1+Change+Log so it seems 2.1 is on the way. Problem with missing multipart support has many consequencies: this issue, = http://www.mail-archive.com/users@myfaces.apache.org/msg55998.html, JSF HTM= L_BASIC does'nt cover all elements from HTML 4.01, user must use third part= y uploads (which are incompatible) usw.=20 Solution from https://javaserverfaces-spec-public.dev.java.net/issues/show_= bug.cgi?id=3D690 based on decorated ExternalContext.getRequestParameterMap(= ) (Neil's solution) works without problem - I've adated it to servlet envi= roment and it works: without a servlet filter, without any third party libr= ary and doesn't lose request parameters with multipart request even they co= mes from a conversation framework. I hope this could be in myfaces core now and it does not break compatibilit= y - if so I can provide a patch. =20 > when form is 'multipart/form-data', form component will never process upd= ate. > -------------------------------------------------------------------------= ---- > > Key: MYFACES-2688 > URL: https://issues.apache.org/jira/browse/MYFACES-2688 > Project: MyFaces Core > Issue Type: Bug > Components: JSR-314 > Affects Versions: 2.0.0 > Environment: mac os x, tomcat. > Reporter: Mark Li > Original Estimate: 120h > Remaining Estimate: 120h > > because 'javax.view.id' will not be find in request.getParametersMap, the= restore phase executor will stop execute. > source code: > package org.apache.myfaces.lifecycle; > ......... > class RestoreViewExecutor implements PhaseExecutor > .......... > public boolean execute(FacesContext facesContext){ > .................. > if (!errorPageRequest && restoreViewSupport.isPostback(facesCont= ext)){ > ................ > } > ............... > } > restoreViewSupport.isPostback(facesContext) will call facesContext.getExt= ernalContext().getRequestParameterMap().get(ResponseStateManager.VIEW_STATE= _PARAM) > but request.parameterMap is empty because of using 'multipart/form-data= '. > restoreViewSupport.isPostback(facesContext) will return false, > then FacesContext.renderResponse() is called. the whole phasing process i= s stopped. > suggestion: > should wrap request.parameterMap from the first place. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.