Author: hoang_to
Date: 2010-07-13 07:37:53 -0400 (Tue, 13 Jul 2010)
New Revision: 3628
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java
Log:
GTNPORTAL-1340: Portlet Edit mode is broken in GateIn 3.1 for JSF Portlet
Modified:
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java
===================================================================
---
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java 2010-07-12
23:46:25 UTC (rev 3627)
+++
portal/trunk/webui/portal/src/main/java/org/exoplatform/portal/webui/application/UIPortletForm.java 2010-07-13
11:37:53 UTC (rev 3628)
@@ -218,7 +218,15 @@
if (portletResponse instanceof FragmentResponse)
{
FragmentResponse fragmentResponse = (FragmentResponse)portletResponse;
- content = new String(fragmentResponse.getBytes(), "UTF-8");
+ if (fragmentResponse.getType() == FragmentResponse.TYPE_BYTES)
+ {
+ content = new String(fragmentResponse.getBytes(), "UTF-8");
+ }
+ else
+ {
+ content = fragmentResponse.getContent();
+ }
+
}
else
{
Show replies by date