Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13828

a4j jsFunction does not work inside a form with enctype="multipart/form-data"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.0.Alpha3
    • Fix Version/s: 4.5.1
    • Component/s: component
    • Labels:
    • Environment:

      Richfaces 4.5.x, Seam 2.3.1, jboss-as-7.1.1.Final (with JSF 2.2.6)

    • Sprint:
      4.5.1 - Sprint 1

      Description

      Here is a simple test case:

      <h:form id="myForm" enctype="multipart/form-data">
      	<h:panelGrid columns="1">
      		<a4j:jsFunction name="changeDummyValue" render="tutu" oncomplete="alert('done')" >
      			<a4j:param name="param1" assignTo="#{dummyConversationScopeBean.dummy}" />
      		</a4j:jsFunction>
      		<h:outputText id="tutu" value="Dummy value is: #{dummyConversationScopeBean.dummy}" />
      		<input type="button" onclick="changeDummyValue(true)" value="Trigger jsFunction" />
      	</h:panelGrid>
      </h:form>
      

      the dummyConversationScopeBean.dummy value is never changed while it is if you remove the enctype="multipart/form-data" on the form. I can see that a server call is done but something wrong happens in ExtendedPartialViewContext at restore phase. I did not have time to further investigate but post any additional info if any.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  michpetrov Michal Petrov
                  Reporter:
                  grenard Guillaume Renard
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

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