Saturday, August 18, 2018

ajax in the spring mvc + thymeleaf application

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:

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