Author: alexsmirnov
Date: 2009-11-17 14:56:37 -0500 (Tue, 17 Nov 2009)
New Revision: 15904
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/resource/UserResource.java
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/webapp/CacheContent.java
Log:
https://jira.jboss.org/jira/browse/RF-8064
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/resource/UserResource.java
===================================================================
---
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/resource/UserResource.java 2009-11-17
18:22:36 UTC (rev 15903)
+++
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/resource/UserResource.java 2009-11-17
19:56:37 UTC (rev 15904)
@@ -108,6 +108,13 @@
OutputStream out = context.getOutputStream();
MethodExpression send = (MethodExpression)
UIComponentBase.restoreAttachedState(facesContext,data.createContent);
send.invoke(elContext,new Object[]{out,data.value});
+ try{
+ //
https://jira.jboss.org/jira/browse/RF-8064
+ out.flush();
+ out.close();
+ } catch (IOException e) {
+ // Ignore it, stream would be already closed by user bean.
+ }
}
}
Modified:
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/webapp/CacheContent.java
===================================================================
---
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/webapp/CacheContent.java 2009-11-17
18:22:36 UTC (rev 15903)
+++
branches/community/3.3.X/framework/impl/src/main/java/org/ajax4jsf/webapp/CacheContent.java 2009-11-17
19:56:37 UTC (rev 15904)
@@ -251,6 +251,8 @@
};
}
+// filledOutputStream = true;
+// content = null;
return servletStream;
}
@@ -276,6 +278,8 @@
};
servletWriter = new PrintWriter(out);
}
+// filledOutputWriter = true;
+// writerContent = null;
return servletWriter;
}