Hi Armol,

On Nov 25, 6:44 am, Amol <[EMAIL PROTECTED]> wrote:
> Hi
> I am designing a web application using GWT, spring & hibernate. I have
> some queries.
>
> 1. What is the best way to submit form data? Should I use gwt form
> submit or collect parameters and invoke service method by passing in
> all form field values?

I would start by looking at hibernate4gwt, if only because of the
concise information it's documentation gives about integrating GWT
with Hibernate and various options. It is based on GWR RPC which I
would think that is your probably best option - it is very neat.

http://hibernate4gwt.sourceforge.net/

In considering your options I would head straight for information
around the central problem of serving Hibernate managed domain classes
to GWT: Hibernate classes are adorned with proxies and "magic
collections" to deal with lazy loading and this makes them
incompatible with GWT JRE emulation. Hibernate4gwt automatically
translates Hibernate managed classes into GWT friendly DTO versions
for transport to client, and restores and updates them on return for
you.

Whatever you do, you have to deal with this problem, and I would say
that you designed your own solution it would probably look very like
hibernate4gwt in the end.

>
> 2. How should I handle security aspect, for example validating each
> request and make sure only authorized user invoke services?
>

Check the group for (occasionally robust) opinion and debate on how
best to go about this. There is an article here which is also a good
starting point:

http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ


> 3. How does session work with GWT?  Is there any sample web
> application developed using gwt, spring and hibernate that can guide
> me?
>

Providing you use GWT RPC you are using RemoteServiceServlets
therefore you have access to HttpSession etc same as any servlet or
Struts action class. Another good reason to use GWT RPC if you are
using Spring. There are plenty of tutorials and articles about how to
integrate GWT with Spring - google "spring GWT inegration"

regards
gregor





> Any help will be highly appreciated
> Regards
> amol
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
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