MyFaces Core
  1. MyFaces Core
  2. MYFACES-2688

when form is 'multipart/form-data', form component will never process update.

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      mac os x, tomcat.

      Description

      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(facesContext))

      { ................ }

      ...............
      }

      restoreViewSupport.isPostback(facesContext) will call facesContext.getExternalContext().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 is stopped.

      suggestion:

      should wrap request.parameterMap from the first place.

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Mark Li
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 120h
              120h
              Remaining:
              Remaining Estimate - 120h
              120h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development