SWF-1402 Add missing delegation methods to FlowViewResponseStateManager and add check for Web Flow request i FlowRenderKit
This commit is contained in:
@@ -52,8 +52,8 @@ public class FlowRenderKit extends RenderKitWrapper {
|
||||
* ResponseStateManager instance otherwise.
|
||||
*/
|
||||
public ResponseStateManager getResponseStateManager() {
|
||||
return (JsfRuntimeInformation.isPartialStateSavingSupported()) ? responseStateManager : delegate
|
||||
.getResponseStateManager();
|
||||
return (JsfUtils.isFlowRequest() && JsfRuntimeInformation.isPartialStateSavingSupported()) ? responseStateManager
|
||||
: delegate.getResponseStateManager();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ package org.springframework.faces.webflow;
|
||||
import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
|
||||
import javax.faces.application.StateManager.SerializedView;
|
||||
import javax.faces.context.FacesContext;
|
||||
import javax.faces.context.ResponseWriter;
|
||||
import javax.faces.render.RenderKitFactory;
|
||||
@@ -129,18 +130,26 @@ public class FlowViewResponseStateManager extends ResponseStateManager {
|
||||
|
||||
// ------------------- Delegation methods ------------------//
|
||||
|
||||
@SuppressWarnings( { "deprecation" })
|
||||
@Override
|
||||
public boolean isPostback(FacesContext context) {
|
||||
return delegate.isPostback(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getTreeStructureToRestore(FacesContext context, String viewId) {
|
||||
return delegate.getTreeStructureToRestore(context, viewId);
|
||||
}
|
||||
|
||||
@SuppressWarnings( { "deprecation" })
|
||||
@Override
|
||||
public Object getComponentStateToRestore(FacesContext context) {
|
||||
return delegate.getComponentStateToRestore(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeState(FacesContext context, SerializedView state) throws IOException {
|
||||
delegate.writeState(context, state);
|
||||
}
|
||||
|
||||
// ------------------- Private helper methods ------------------//
|
||||
|
||||
private String getFlowExecutionKey() {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<link rel="stylesheet" href="${request.contextPath}/styles/blueprint/screen.css" type="text/css" media="screen, projection" />
|
||||
<link rel="stylesheet" href="${request.contextPath}/styles/blueprint/print.css" type="text/css" media="print" />
|
||||
<!--[if lt IE 8]>
|
||||
<link rel="stylesheet" href="<c:url value="/blueprint/ie.css" />" type="text/css" media="screen, projection" />
|
||||
<link rel="stylesheet" href="${request.contextPath}/styles/blueprint/ie.css" type="text/css" media="screen, projection" />
|
||||
<![endif]-->
|
||||
<link rel="stylesheet" href="${request.contextPath}/styles/le-frog/jquery-ui-1.8.2.custom.css" type="text/css" media="screen" />
|
||||
<ui:insert name="headIncludes"/>
|
||||
|
||||
Reference in New Issue
Block a user