Make isStateless return false

Issue: SWF-1719
This commit is contained in:
Phillip Webb
2018-02-08 23:57:51 -08:00
committed by Rossen Stoyanchev
parent 81ac1b0dcf
commit 5a1c854d27
2 changed files with 10 additions and 0 deletions

View File

@@ -61,6 +61,11 @@ public class FlowResponseStateManager extends ResponseStateManagerWrapper {
return this.wrapped;
}
@Override
public boolean isStateless(FacesContext context, String viewId) {
return false;
}
@Override
public void writeState(FacesContext facesContext, Object state) throws IOException {
if (!JsfUtils.isFlowRequest()) {

View File

@@ -60,6 +60,11 @@ public class MyFacesFlowResponseStateManager extends ResponseStateManagerWrapper
return this.wrapped;
}
@Override
public boolean isStateless(FacesContext context, String viewId) {
return false;
}
public void saveState(FacesContext facesContext, Object state) {
RequestContext requestContext = RequestContextHolder.getRequestContext();
requestContext.getViewScope().put(FlowResponseStateManager.FACES_VIEW_STATE, state);