PDA

View Full Version : Spring3 MVC Ext.Direct Router



MoShAn480
28 Jan 2010, 10:40 PM
Hi,

just started this project if anyone is interested please have a look. It's a router implementation for Spring3 MVC developers which tries to maintain the ease and flexibility of Spring MVC.

Main idea is that use the base controller and annotations to write the router methods then use the utility to auto generate JavaScript ExtJS remoting API off the controller class.

Also, all methods which are implemented in the controller can take full advantage of the Spring framework including form submits field validation where the validation error translate back into ExtJS field validation errors and automatically picked up by ExtJS.

I will write more documentation and put together a sample application in coming days...any feedback is greatly appreciated.

Thanks!

http://code.google.com/p/springextjs/

MoShAn480
17 Feb 2010, 9:47 PM
Hi,

for those of you who maybe interested, I have put out a springextjs-0.9.2-beta.jar.

The updates include:


Removed JSONLib and dependencies. All JSON serialization/deserialization is done by Jackson object mapper API now.
Form loads are done via annotation attribute "formLoad=true" instead of using method to return via a wrapper bean.
Able to use POJO's as param to non form submit methods just like standard Spring MVC form submit methods. The POJO's are deserialized using Jackson object mapper from a JSON string.
JSONLib's JSONObject and JSONArray can no longer be used as parameters to remoting methods. Instead for dealing with JSON, the param will be passed as a string and any JSON deserialization technique or API can be used by developer instead of being tied to JSONLib.


Many more improvements are planned by 1.0 release including:


Converting to Maven project
Separating unit tests out of JAR
Flexible API generation including passing final API reference (defaults to REMOTIN_API = {..} currently) and multiple remoting controllers with corresponding action names.
Built in MVC endpoint to load API from <script src="/mycontroller/remoting/api" />
Simplified form submit return handling using interceptors and AOP to populate return JSON dynamically
Polling support

Updated WIKI on usage at:

http://code.google.com/p/springextjs/wiki/UsingLatestSpringextjs

Thanks for the support!

MoShAn480
18 Feb 2010, 6:58 PM
Hi,

for those of you who maybe interested, I have put out a springextjs-0.9.2-beta.jar.

The updates include:


Removed JSONLib and dependencies. All JSON serialization/deserialization is done by Jackson object mapper API now.
Form loads are done via annotation attribute "formLoad=true" instead of using method to return via a wrapper bean.
Able to use POJO's as param to non form submit methods just like standard Spring MVC form submit methods. The POJO's are deserialized using Jackson object mapper from a JSON string.
JSONLib's JSONObject and JSONArray can no longer be used as parameters to remoting methods. Instead for dealing with JSON, the param will be passed as a string and any JSON deserialization technique or API can be used by developer instead of being tied to JSONLib.


Many more improvements are planned by 1.0 release including:


Converting to Maven project
Separating unit tests out of JAR
Flexible API generation including passing final API reference (defaults to REMOTIN_API = {..} currently) and multiple remoting controllers with corresponding action names.
Built in MVC endpoint to load API from <script src="/mycontroller/remoting/api" />
Simplified form submit return handling using interceptors and AOP to populate return JSON dynamically
Polling support

Updated WIKI on usage at:

http://code.google.com/p/springextjs/wiki/UsingLatestSpringextjs

Thanks for the support!

MoShAn480
20 Feb 2010, 1:11 AM
Updated WIKI:

http://code.google.com/p/springextjs/wiki/UsingLatestSpringextjs

MoShAn480
20 Feb 2010, 1:12 AM
Hi,

for those of you who maybe interested, I have put out a springextjs-0.9.2-beta.jar.

The updates include:


Removed JSONLib and dependencies. All JSON serialization/deserialization is done by Jackson object mapper API now.
Form loads are done via annotation attribute "formLoad=true" instead of using method to return via a wrapper bean.
Able to use POJO's as param to non form submit methods just like standard Spring MVC form submit methods. The POJO's are deserialized using Jackson object mapper from a JSON string.
JSONLib's JSONObject and JSONArray can no longer be used as parameters to remoting methods. Instead for dealing with JSON, the param will be passed as a string and any JSON deserialization technique or API can be used by developer instead of being tied to JSONLib.


Many more improvements are planned by 1.0 release including:


Converting to Maven project
Separating unit tests out of JAR
Flexible API generation including passing final API reference (defaults to REMOTIN_API = {..} currently) and multiple remoting controllers with corresponding action names.
Built in MVC endpoint to load API from <script src="/mycontroller/remoting/api" />
Simplified form submit return handling using interceptors and AOP to populate return JSON dynamically
Polling support

Updated WIKI on usage at:

http://code.google.com/p/springextjs/wiki/UsingLatestSpringextjs

Thanks for the support!