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.

Reply via email to