Can Richfaces (de)serialize objects? Say for instance, I have a row of data being displayed in a richfaces table. Can I serialize the row of data to a string and later deserialize it back into a row?
+1
A:
You can serialize anything on the server-side - i.e. in a managed bean.
Then you can output it wherever you want with #{yourBean.yourSerializedJson}
(or iterate over a collection of serialized data).
Bozho
2010-04-16 20:28:33
Thanks for helping, that makes sense.
Adam
2010-04-28 17:09:10
+1
A:
It is also possible to turn a JSON object into a string in javascript. The following link contains a good tutorial on JSON:
http://www.hunlock.com/blogs/Mastering_JSON_%28_JavaScript_Object_Notation_%29
Gennetta
2010-04-28 17:41:58