Browse Source

WebApplicationContextFacesELResolver.isReadOnly returns true for WAC

Issue: SPR-16543
pull/1658/merge
Juergen Hoeller 8 years ago
parent
commit
478162741d
  1. 10
      spring-web/src/main/java/org/springframework/web/jsf/el/WebApplicationContextFacesELResolver.java

10
spring-web/src/main/java/org/springframework/web/jsf/el/WebApplicationContextFacesELResolver.java

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2017 the original author or authors. * Copyright 2002-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -150,7 +150,7 @@ public class WebApplicationContextFacesELResolver extends ELResolver {
public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException { public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException {
if (base instanceof WebApplicationContext) { if (base instanceof WebApplicationContext) {
elContext.setPropertyResolved(true); elContext.setPropertyResolved(true);
return false; return true;
} }
return false; return false;
} }
@ -168,9 +168,9 @@ public class WebApplicationContextFacesELResolver extends ELResolver {
/** /**
* Retrieve the WebApplicationContext reference to expose. * Retrieve the {@link WebApplicationContext} reference to expose.
* <p>The default implementation delegates to FacesContextUtils, * <p>The default implementation delegates to {@link FacesContextUtils},
* returning {@code null} if no WebApplicationContext found. * returning {@code null} if no {@code WebApplicationContext} found.
* @param elContext the current JSF ELContext * @param elContext the current JSF ELContext
* @return the Spring web application context * @return the Spring web application context
* @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext * @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext

Loading…
Cancel
Save