SpringMVC and extjs integration

I am using springMVC and hibernate in my current j2ee project. The view now consists of simple jsp, with JSTL, to make things a little simple.

Looking at the extjs project, I believe that it can be used as a replacement for the presentation. I was looking at extjs docs, but to be honest, I'm not sure how to integrate it into spring.

Does anyone have a tutorial, blog, book recommendations to get started with this?

Or, on the other hand, if extjs is better managed from a different MVC java framework, then suggest the same.

+4
source share
3 answers

Below is an example of a ProgressBar Pager integrated with Spring 3.0

It demonstrates that Ext JS provides an XMLStore helper class that is automatically configured using the XMLReader, which is used to read data from the server.

It uses Xstream from code to serialize to XML.

XStream is easy to configure with annotations ,

+4
source

I like to use Spring views to return JSON data. Requests are received and processed by ThrowAwayController or MultiActionController or annotations (depending on the Java version) that ultimately pass the JsonView model. There are libraries / packages that create JSON from Java objects - I recommend using them. The client is a one-page web application created from JavaScript when the site loads, and it makes requests to the server (as described above) in response to user requests. JSP and JSTL are not completely discarded, but their role is less important.

+2
source

You can look at http://www.jprovocateur.org (Spring + Hibernate + Ext JS), which allows you to customize the appearance of js (forms and grids) using xml.

Regards, M.

+1
source

All Articles