2009/2/14 avivg <[email protected]>

>
> Hello,
>
> I'm a GWT newbie. I've read the GWT docs and played with the samples,
> but still i have some basic questions about how to design and use GWT
> in a web app:
>
> 1) GWT communicates asynchronously with a server. When a GWT
> application loads, i would like to be able to display some initial
> data without going back to the server (after all, we've just been
> there:). How/where can i pass some initial data and what method do i
> use to feed it to GWT? (instead of making a (redundant) asynchronous
> call for the data immediately when the app first loads)
>
You can pass  data into your gwt app as js variables, form,maybe hidden
variables, url parameters, and so on.

>
> 2) I would like to use GWT with a JSON capable server (php, django
> etc). My question is, what is the best way to use GWT? Should i use
> GWT to code the entire website? Should i use a single GWT app to deal
> with the entire site or do i break small pieces of functionality to
> small GWTapps? Or the other extreme: just use GWT to implement tiny JS
> "widgets" combined with a traditional template rendering oriented
> website (eg php). What is the common usage model?

It as a matter of tasta, and advance in gwt, and the borders of your
application:)
At firs try to make same finctional widgets, and go on.

>
>
> 3) WRT #2: How would you recommend implementing user login and
> registration functionality using GWT+JSON?
>   a) Using GWT as an AJAX widget to spice up a php/django form
>   b) Implement a GWT app specific to registering / login users,
> leaving other website functionality to other GWT apps
>   c) Implement user functionality using GWT into a single app
> containing the entire website functionality.
>
I think (a.) will good for you, and will be fun.
-- 
Best Regards
Tóth Imre

--~--~---------~--~----~------------~-------~--~----~
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