Author: alexsmirnov
Date: 2008-05-27 17:19:37 -0400 (Tue, 27 May 2008)
New Revision: 8791
Modified:
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java
trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
Log:
set encodind to avoid
http://jira.jboss.com/jira/browse/RF-3557
replace deprecated classes
Modified:
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java
===================================================================
---
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java 2008-05-27
17:46:43 UTC (rev 8790)
+++
trunk/framework/impl/src/main/java/org/richfaces/component/UISwitchablePanel.java 2008-05-27
21:19:37 UTC (rev 8791)
@@ -23,6 +23,7 @@
import java.util.Iterator;
+import javax.el.ValueExpression;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
@@ -124,9 +125,9 @@
}
//TODO UIInput should update the model, not the switchable panel itself
- ValueBinding valueBinding = getValueBinding("value");
+ ValueExpression valueBinding = getValueExpression("value");
if (valueBinding != null) {
- valueBinding.setValue(facesContext, newValue);
+ valueBinding.setValue(facesContext.getELContext(), newValue);
setValue(null);
setLocalValueSet(false);
} else {
Modified: trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp
===================================================================
--- trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2008-05-27 17:46:43
UTC (rev 8790)
+++ trunk/test-applications/jsp/src/main/webapp/pages/Rich/Rich.jsp 2008-05-27 21:19:37
UTC (rev 8791)
@@ -3,6 +3,7 @@
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib
uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib
uri="http://richfaces.org/rich" prefix="rich" %>
+<%@page contentType="text/html; charset=UTF-8" %>
<html>
<f:view>