myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Li (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (MYFACES-2688) when form is 'multipart/form-data', form component will never process update.
Date Fri, 30 Apr 2010 06:10:57 GMT
when form is 'multipart/form-data', form component will never process update.
-----------------------------------------------------------------------------

                 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


because 'javax.view.id' will not find in request.getParametersMap, the restore phase executor
will stop execute.

package org.apache.myfaces.lifecycle;
.........
class RestoreViewExecutor implements PhaseExecutor
..........
  public boolean execute(FacesContext facesContext){
..................

         if (!errorPageRequest && restoreViewSupport.isPostback(facesContext)){
................
          }
...............
  }

the restoreViewSupport.isPostback(facesContext) will call facesContext.getExternalContext().getRequestParameterMap().get(ResponseStateManager.VIEW_STATE_PARAM)

but,  request.parameterMap is empty because of  using 'multipart/form-data', return false;

then FacesContext.renderResponse() is called, the all process is stopped.

suggestion:

should wrap request.parameterMap from the first place.





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message