WebApplicationContextFacesELResolver.isReadOnly returns true for WAC

Issue: SPR-16543

(cherry picked from commit 4781627)
This commit is contained in:
Juergen Hoeller
2018-03-01 01:32:11 +01:00
parent 8e68ac44d2
commit 3e6cfb7c6d

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2013 the original author or authors.
* Copyright 2002-2018 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.
@@ -147,7 +147,7 @@ public class WebApplicationContextFacesELResolver extends ELResolver {
public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException {
if (base instanceof WebApplicationContext) {
elContext.setPropertyResolved(true);
return false;
return true;
}
return false;
}
@@ -164,9 +164,9 @@ public class WebApplicationContextFacesELResolver extends ELResolver {
/**
* Retrieve the WebApplicationContext reference to expose.
* <p>The default implementation delegates to FacesContextUtils,
* returning {@code null} if no WebApplicationContext found.
* Retrieve the {@link WebApplicationContext} reference to expose.
* <p>The default implementation delegates to {@link FacesContextUtils},
* returning {@code null} if no {@code WebApplicationContext} found.
* @param elContext the current JSF ELContext
* @return the Spring web application context
* @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext