Fix issue with RichFaces file upload
Change JsfView.userEventQueued() to check for 'javax.faces.ViewState' via the FacesContext rather than the RequestContext. This allows potential multi-part request submissions to be processed by JSF rather than Spring. Issue: SWF-1482
This commit is contained in:
committed by
Rossen Stoyanchev
parent
2d47d6cbb2
commit
787fb7dc89
@@ -194,11 +194,9 @@ public class JsfViewTests extends TestCase {
|
||||
|
||||
public final void testUserEventQueued_FormSubmitted() {
|
||||
|
||||
MockParameterMap requestParameterMap = new MockParameterMap();
|
||||
requestParameterMap.put("execution", "e1s1");
|
||||
requestParameterMap.put("javax.faces.ViewState", "e1s1");
|
||||
this.jsfMock.request().addParameter("execution", "e1s1");
|
||||
this.jsfMock.request().addParameter("javax.faces.ViewState", "e1s1");
|
||||
|
||||
EasyMock.expect(this.context.getRequestParameters()).andStubReturn(requestParameterMap);
|
||||
EasyMock.replay(new Object[] { this.context, this.flowExecutionContext, this.flowMap, this.flashScope });
|
||||
|
||||
JsfView createdView = new JsfView(new UIViewRoot(), this.jsfMock.lifecycle(), this.context);
|
||||
|
||||
Reference in New Issue
Block a user