There are a number of ways to set up a GWT-based application to communicate with the server. This section describes how to use Spring Security when utilizing GWT's com.google.web.bindery.requestfactory.shared.RequestFactory
. We have chosen to use RequestFactory
, because it is optimal for larger data-driven applications that are more likely to be found in real-world applications. Another benefit of using RequestFactory
is that we can utilize the ServiceLocator
interface to allow Spring to create our objects.
While the initial complexity of setting up RequestFactory
can be difficult for developers; the long-term benefits of RequestFactory
are likely to outweigh the initial complexity. For more information about RequestFactory
and its benefits, refer to the GWT documentation at https://developers.google.com/web-toolkit/.