Welcome to GWTruts
GWT MVC and DI Framework
GWTruts is an easy to use GWT MVC and Dependency Injection framework.
It virtually divides a GWT module to view, controller and validation sections similar to what we had in traditional MVC web frameworks like Apache Struts.
It also provides a dependency injection mechanism similar to Spring that you can use to customize your controllers and views (like providing the height of a component through a property setting in its view class configuration via XML files).
If you use Spring in your project you can have some of the controls as Spring beans and completely omit the RPC calls.
Another interesting feature is the page decorator which can be used for mappings between a URL and a group of controllers/views and sections of the HTML files.
After downloading the file read the Quick Start Guide to start using it.
If you are familiar with a traditional web based MVC framework, the learning curve for GWTruts should be few minutes.
GWTruts is released under LGPL which means that in most cases you should be able to use it in your proprietary software as a library with no need to make your code open sourced or available to public.
Sample Configuration File
<?xml version="1.0" encoding="windows-1252"?> <GWTruts xmlns="http://gwtruts.sourceforge.net/schema/GWTruts" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://gwtruts.sourceforge.net/schema/GWTruts http://gwtruts.sourceforge.net/schema/GWTruts/GWTrutsSchema-0.8.xsd"> <controllers> <controller name="mainController" class="com.yourcompany.app.client.controllers.MainController"> <property name="val1" value="122"/> <property name="val2" text="bbbd"/> <property name="val3" ref="mainView"/> </controller> <controller name="mainShowButtonController" class="com.yourcompany.app.client.controllers.MainShowButtonController" async="true"/> </controllers> <views> <view name="mainView" class="com.yourcompany.app.client.views.MainView" singleton="true"/> <view name="sayHelloView" class="com.yourcompany.app.client.views.SayHelloView"/> </views> </GWTruts>
- For support requests please use the forums.
- For bug reports or feature requests, simply create a new ticket.
- Another project of mine is a free ASX stock value screener give it a try and see if you like it.