I'm playing around with spring mvc + thymeleaf.
However I'd like to have integration with ajax (partial page rendering).
Can you recommend me some sample code/tutorial to follow?
I've only found following:
- spring mvc + thymeleaf + spring web flow + apache tiles + spring javascript (http://blog.springsource.org/2013/03/26/bringing-new-life-to-spring-travel-with-thymeleaf/)
- spring mvc + apache tiles + spring javascript (http://maciekmoczkowski.blogspot.de/2009/09/partial-rendering-with-spring-mvc-and.html)
however I'm not interested in using apache tiles or spring web flow at all.
Solved
Tiles is mandatory, for this purpose - according to the site documentation
http://docs.spring.io/spring-webflow/docs/current/reference/html/spring-js.html#spring-js-ajax
Refer section titled - "12.5. Handling Ajax Requests"
This link tells you what is needed is just a parameter with your request, named fragments
http://brosan.net/2012/09/25/partials-with-spring-mvc-3-1-and-apache-tiles/
No comments:
Post a Comment