Author: nbelaevski
Date: 2010-12-22 17:11:51 -0500 (Wed, 22 Dec 2010)
New Revision: 20752
Modified:
trunk/core/impl/src/main/java/org/richfaces/context/PartialViewContextImpl.java
Log:
https://issues.jboss.org/browse/RF-9665
Modified: trunk/core/impl/src/main/java/org/richfaces/context/PartialViewContextImpl.java
===================================================================
---
trunk/core/impl/src/main/java/org/richfaces/context/PartialViewContextImpl.java 2010-12-22
22:10:33 UTC (rev 20751)
+++
trunk/core/impl/src/main/java/org/richfaces/context/PartialViewContextImpl.java 2010-12-22
22:11:51 UTC (rev 20752)
@@ -234,6 +234,10 @@
}
if (phaseId == PhaseId.APPLY_REQUEST_VALUES) {
+ //fix for MyFaces
+ ExternalContext externalContext = facesContext.getExternalContext();
+
externalContext.setResponseCharacterEncoding(externalContext.getRequestCharacterEncoding());
+
PartialResponseWriter writer = pvc.getPartialResponseWriter();
facesContext.setResponseWriter(writer);
}