You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/05/27 01:17:30 UTC
svn commit: r778923 -
/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/portlet/PortletExternalContextWrapper.java
Author: lu4242
Date: Tue May 26 23:17:29 2009
New Revision: 778923
URL: http://svn.apache.org/viewvc?rev=778923&view=rev
Log:
TOMAHAWK-1402 PortletExternalContextWrapper does not implement getRequestCharacterEncoding for wrapped ExternalContext. (Thanks to FR Weichand)
Modified:
myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/portlet/PortletExternalContextWrapper.java
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/portlet/PortletExternalContextWrapper.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/portlet/PortletExternalContextWrapper.java?rev=778923&r1=778922&r2=778923&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/portlet/PortletExternalContextWrapper.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/webapp/filter/portlet/PortletExternalContextWrapper.java Tue May 26 23:17:29 2009
@@ -414,4 +414,23 @@
}
}
+ public String getRequestCharacterEncoding()
+ {
+ try
+ {
+ Method method = _delegate.getClass().getMethod(
+ "getRequestCharacterEncoding",
+ null);
+ return (String) method.invoke(_delegate, null);
+ }
+ catch (NoSuchMethodException e)
+ {
+ throw new RuntimeException("JSF 1.2 method not implemented: "+e.getMessage());
+ }
+ catch (Exception e)
+ {
+ throw new RuntimeException("Error calling JSF 1.2 method: "+e.getMessage());
+ }
+ }
+
}