Author: nbelaevski
Date: 2009-06-05 09:10:09 -0400 (Fri, 05 Jun 2009)
New Revision: 14534
Modified:
branches/community/3.3.X/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
Log:
https://jira.jboss.org/jira/browse/RF-7247
Modified:
branches/community/3.3.X/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java
===================================================================
---
branches/community/3.3.X/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2009-06-05
11:56:27 UTC (rev 14533)
+++
branches/community/3.3.X/framework/api/src/main/java/org/ajax4jsf/javascript/ScriptUtils.java 2009-06-05
13:10:09 UTC (rev 14534)
@@ -179,6 +179,14 @@
}
}
+ /**
+ * Convert any Java Object to JavaScript representation ( as possible ) and write it to
+ * writer immediately
+ *
+ * @param responseWriter
+ * @param obj
+ * @throws IOException
+ */
public static void writeToStream(final ResponseWriter responseWriter, Object obj) throws
IOException {
writeScriptToStream(new ResponseWriterWrapper(responseWriter), obj);
}