Fix check for MyFaces
Issue: SWF-1650, SWF-1656
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2012 the original author or authors.
|
||||
* Copyright 2004-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -44,7 +44,7 @@ public class FlowRenderKit extends RenderKitWrapper {
|
||||
}
|
||||
|
||||
private ResponseStateManager initResponseStateManager(ResponseStateManager wrapped) {
|
||||
if (!JsfRuntimeInformation.isMyFacesPresent() && !JsfRuntimeInformation.isMyFacesInUse()) {
|
||||
if (!JsfRuntimeInformation.isMyFacesInUse()) {
|
||||
return new FlowResponseStateManager(wrapped);
|
||||
}
|
||||
Constructor<?> constructor;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2004-2014 the original author or authors.
|
||||
* Copyright 2004-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -127,7 +127,7 @@ public class PortletExternalContextImpl extends ExternalContext {
|
||||
}
|
||||
|
||||
private Flash createFlash() {
|
||||
if (JsfRuntimeInformation.isMyFacesPresent()) {
|
||||
if (JsfRuntimeInformation.isMyFacesInUse()) {
|
||||
return new MyFacesFlashFactory().newFlash(this);
|
||||
} else {
|
||||
return new MojarraFlashFactory().newFlash(this);
|
||||
|
||||
Reference in New Issue
Block a user