Skip to content

Commit 4781627

Browse files
committed
WebApplicationContextFacesELResolver.isReadOnly returns true for WAC
Issue: SPR-16543
1 parent 6f7ad03 commit 4781627

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -150,7 +150,7 @@ public void setValue(ELContext elContext, Object base, Object property, Object v
150150
public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException {
151151
if (base instanceof WebApplicationContext) {
152152
elContext.setPropertyResolved(true);
153-
return false;
153+
return true;
154154
}
155155
return false;
156156
}
@@ -168,9 +168,9 @@ public Class<?> getCommonPropertyType(ELContext elContext, Object base) {
168168

169169

170170
/**
171-
* Retrieve the WebApplicationContext reference to expose.
172-
* <p>The default implementation delegates to FacesContextUtils,
173-
* returning {@code null} if no WebApplicationContext found.
171+
* Retrieve the {@link WebApplicationContext} reference to expose.
172+
* <p>The default implementation delegates to {@link FacesContextUtils},
173+
* returning {@code null} if no {@code WebApplicationContext} found.
174174
* @param elContext the current JSF ELContext
175175
* @return the Spring web application context
176176
* @see org.springframework.web.jsf.FacesContextUtils#getWebApplicationContext

0 commit comments

Comments
 (0)