Hi everyone!

I'm new to gwt, but quickly saw how dynamic it could be if done right,
'done right' being keywords. So, basically, I have Railo running,
which loads alot like Tomcat. So, by placing my built war into webapps
dir, up launches gwt.

This is great, but the problem is how to "page" different data
representations, or "views" , if you will.
So , one might have a Homepage, and then maybe a Profile page, or a
Login screen. These all will have different html, obviously. Without
coding the entire thing in gwt - which is my goal here - , how would I
use this server side language as a template?

I have a few ideas that may better explain this, than I can with
words...
Theory 1: Use URL Connections to execute Railo(ie coldfusion) code (or
php, for purposes of better explaining this), and return an html
"construct"/"template" containing div's with id's that can GWT can
drop data into.
Problem: This would be alot of overhead I would think.... more of a
cluster-F really, since client is already connecting to server, and to
have the server further execute code within it's same scope, well
that's just retarted. Or so I imagine....

Theory 2: Use JSON to perform the same as theory 1, except use a
cfsavecontent tag to store the "resulting page" from executing server
side code... as a string.
Problem: Seems inefficient, and needless - surely there's a better
way.

Theory 3: Use java.io to read a file, and simply Component.setContent
(new HTML(szDataFromFile)); , for instance.
Problem: Server side language doesn't execute....


Simplified....
I am just looking for some way to "design" my pages in server side
language, and "enhance" them with GWT. I don't want to use GWT for the
entire site design, because honestly, it's not rigid enough - alittle
too Web 2.0, if that makes sense. I already have alot of content
designed in ColdFusion, for all businness practicality. I don't want
to have to redesign ALL of this in Java... that would just be a walk
through hell and back.

Any help would be more than greatly appreciated... Really not sure
what the best option is for "templating" in gwt; an important
consideration when designing a web page as interactive as this would
be.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to