trying hard to understand boostrap serialize and deserialize

3 views
Skip to first unread message

asianCoolz

unread,
Jun 11, 2009, 3:21:28 AM6/11/09
to ToCollege-net
I under collegecontoller serialized string and put in modelview. and
there is enough to make it print out in view layer. but i dont
understand why in forumApp.java, u need to deserialize it?

jdwy

unread,
Jun 11, 2009, 11:15:17 AM6/11/09
to ToCollege-net
The serialization achieves 2 things. First it is our solution to SEO,
by having our serialized object able to be splatted into the
<noscript> tag. Second, we want to avoid step 4 of:

1) html load
2) gwt javascript load
3) javascript inititialization
4) go make bootstrapping async call

As the user it's no fun to wait for the UI to load, then immediately
start waiting for the first async call. Since it's in the page, we can
just deserialize and we're on our way.

-Jeff

asianCoolz

unread,
Jun 11, 2009, 9:53:54 PM6/11/09
to ToCollege-net
1) html load (serialize will able to display the content in
freemaker, so this is for seo)
2) gwt javascript load
3) javascript inititialization
4) go make bootstrapping async call

but for step 2,3,4 . is that the reason for using "deserialized" in
file ForumApp? because sound to me, step 2,3,4 is not related to seo
at all. sorry to trouble you. please elaborate more. thank you jdwy!

jdwy

unread,
Jun 12, 2009, 9:26:00 AM6/12/09
to ToCollege-net
yeah, deserialize isn't for SEO. It's to bootstrap. To get data from
the server into the GWT app without making an AJAX call.
Reply all
Reply to author
Forward
0 new messages