Resources and References

38 views
Skip to first unread message

g.georgo...@gmail.com

unread,
Jan 27, 2007, 8:38:19 AM1/27/07
to gwt-sl
This forum is here to discuss and provide help about the GWT-SL
library [1], an addition to the Google Web Toolkit [2] which
integrates it better with the Spring Framework [3]. Things you may
find interesting are:

[1] GWT-SL, a sister project of the GWT Widget Library project
http://gwt-widget.sourceforge.net/

[2] The Google Web Toolkit
http://googlewebtoolkit.blogspot.com/

[3] The Spring Framework
http://springframework.org/

g.georgo...@gmail.com

unread,
Jan 27, 2007, 9:05:56 AM1/27/07
to gwt-sl
[4] An intro to the GWTHandler (with sample application):
http://g.georgovassilis.googlepages.com/usingthegwthandler

g.georgo...@gmail.com

unread,
Feb 3, 2007, 10:00:29 AM2/3/07
to gwt-sl
A 1 minute crash course in how to use the GWTHandler:

----------- Define service interface -----------

public interface ServiceAdd extends BaseService{
int add(int a, int b);
}

----------- Implement service -----------

public class ServiceAddImpl implements ServiceAdd {

public int add(int a, int b) {
return new Integer(a + b);
}

}

----------- Create service bean -----------

<bean id="ServiceAdd" class="ServiceAddImpl" />

----------- Map the service to a URL -----------

<bean id="urlMapping" class="org.gwtwidgets.server.spring.GWTHandler">
<property name="mapping">
<map>
<entry key="/add.rpc" value-ref="ServiceAdd" />
</map>
</property>
</bean>


----------- And have the standard glue code in web.xml: -----------

<listener>
<listener-
class>org.springframework.web.context.ContextLoaderListener</listener-
class>
</listener>
<servlet>
<servlet-name>GWTSpring</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>GWTSpring</servlet-name>
<url-pattern>*.rpc</url-pattern>
</servlet-mapping>

g.georgo...@gmail.com

unread,
Mar 21, 2007, 5:07:08 PM3/21/07
to gwt-sl
For your reading pleasure, a description [5] and short how-to of the
newly introduces GWTController, a controller that exposes encapsulated
service beans to URLs via RPC.

[5] http://g.georgovassilis.googlepages.com/usingthegwtcontroller

Reply all
Reply to author
Forward
0 new messages