Author: amarkhel
Date: 2009-06-04 11:38:43 -0400 (Thu, 04 Jun 2009)
New Revision: 14480
Modified:
branches/community/3.3.X/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
Log:
Fix RF-7205
Modified:
branches/community/3.3.X/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java
===================================================================
---
branches/community/3.3.X/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java 2009-06-04
15:38:05 UTC (rev 14479)
+++
branches/community/3.3.X/ui/simpleTogglePanel/src/main/java/org/richfaces/component/UISimpleTogglePanel.java 2009-06-04
15:38:43 UTC (rev 14480)
@@ -286,8 +286,8 @@
Object value = getLocalValue();
if (value != null) {
ValueExpression ve = getValueExpression("value");
- if (ve != null) {
- FacesContext context = getFacesContext();
+ FacesContext context = getFacesContext();
+ if (ve != null && !ve.isReadOnly(context.getELContext())) {
try {
ve.setValue(context.getELContext(), value);
setValue(null);