Configuring Apache Tiles to Avoid Caching During Development
When you want to use Apache Tiles, you will find that your tiles are cached and are not refershed when you reload the page in web browser.
This is a non-issue in production environment because once your webapp is deployed in production you never change your Apache Tiles templates and pages. However, in a development environment this is cumbersome since you will have to redeploy your webapp each time you make a change in your templates.
I faced a similar problem recently and the I found out the I could use the 'useMutableTilesContainer' property in TilesConfigurer class and the 'cache' property in TilesViewResolver class.
You configuration should look something like this:
<property name="definitions">
<list>
<value>/WEB-INF/path-to-your/tiles-definition.xml</value>
</list>
</property>
<property name="useMutableTilesContainer" value="true" />
</bean>
<bean id="viewResolver" class="org.springframework.web.servlet.view.tiles3.TilesViewResolver">
<property name="viewClass">
<value>
org.springframework.web.servlet.view.tiles3.TilesView
</value>
</property>
<property name="cache" value="false" />
</bean>
I hope that this helps somebody facing caching problem in Apache Tiles during development.
Basically you have to set 'useMutableTilesContainer' to true and the 'cache' property to false.
The 'useMutableTilesContainer' property is in TilesConfigurer class and the 'cache' property is in TilesViewResolver class.
Happy Coding!
I have to appreciate you for your great work which you had done in your blog.i want you to add more like this.
ReplyDeleteJAVA Training in Chennai
JAVA Training in Tnagar
Selenium Training in Chennai
Digital Marketing Course in Chennai
Python Training in Chennai
Big data training in chennai
JAVA Training in Chennai
Java Training in Velachery
The blog is good.Hope you continue to share more of your ideas.I will definitely love to read.
ReplyDeleteLoadRunner Training in Chennai
hp loadrunner training
Loadrunner Training in OMR
QTP Training in Chennai
QTP Training Institutes in Chennai
clinical sas training in chennai
SAS Course in Chennai
LoadRunner Training in Chennai
I would definitely thank the admin of this blog for sharing this information with us. Waiting for more updates from this blog admin.
ReplyDeleteweb designing training in chennai
web designing course
ccna Training in Chennai
PHP Training in Chennai
ReactJS Training in Chennai
Web Designing Course in chennai
Web designing training in chennai
I am really interested to continue reading your blog. You have shared valid info. Waiting for more updates from you.
ReplyDeleteIELTS Coaching in Chennai
IELTS Coaching Centre in Chennai
IELTS Training in Chennai
IELTS Chennai
Best IELTS Coaching in Chennai
I usually gather information from the blog which you posted.Thanks for sharing your thoughts about the concept which we know much better.
ReplyDeleteWeb Designing Training in OMR
Web Designing Training in Porur
Web designing Training in T Nagar
Web Designing Training in Chennai
Web Designing Course in chennai
AngularJS Training in T Nagar
AngularJS Training in OMR
AngularJS Training in Velachery
I read awesome post after a long time.I am very satisfied with your way of writing.Expect the next post in the upcoming days.
ReplyDeleteAngularJS Training in OMR
Web designing Training in Anna Nagar
AngularJS Training in Tambaram
Web Designing Training in OMR
AngularJS Training in Porur
Web Designing Training in Porur
AngularJS Training in Velachery
Web designing Training in T Nagar
Wonderful article! I am having lots of information, after seeing your post and Definitely, I will share your post with my friends. Keep sharing and well done.
ReplyDeleteOracle DBA Training in Chennai
Oracle DBA Course in Chennai
Spark Training in Chennai
Oracle Training in Chennai
Social Media Marketing Courses in Chennai
Pega Training in Chennai
Linux Training in Chennai
Primavera Training in Chennai
Tableau Training in Chennai
Oracle DBA Training Fess in Chennai
We read your blog , share most useful information in blog . Web Design
ReplyDeleteI am very thankful for the author who shared the informative blog. This helps the first home buyers in a better way to choose the appropriate location.
ReplyDeleteBuilders in Chennai
Properties in Chennai
I am thankful to this blog giving unique and helpful knowledge about this topic. Software Outsourcing Services
ReplyDeleteIt’s really a Great Post .Looking for Some More Stuff
ReplyDeletebest aviation academy in Chennai
cabin crew training Chennai
airline academy in Chennai
airport ground staff training courses in Chennai
Aviation Academy in Chennai
air hostess training in Chennai
airport management courses in Chennai
ground staff training in Chennai
These are really amazing and valuable websites you have share with us. Thanks for the informative post.
ReplyDeleteWordPress development company in Chennai
Nah dengan memperhatikan beberapa hal diatas, maka ini akan menjadi salah satu cara dan jalan terbaik untuk anda bisa mendapatkan keuntungan
ReplyDeleteasikqq
http://dewaqqq.club/
http://sumoqq.today/
interqq
pionpoker
bandar ceme
freebet tanpa deposit
paito warna terlengkap
syair sgp
Great blog ! I am impressed with suggestions of author. School ERP
ReplyDeletetempat terbaik poker online
ReplyDeleteGreat blog, I was searching this for a while. Do post more like this.
ReplyDeleteAngularJS Training in Chennai
Angular 4 Training in Chennai
Angular 5 Training in Chennai
paito warna china
ReplyDeletedata sydney
datahk
syair sydney
syairsgp
datasgp
paito warna
http://warungsgp.com/
live hk 6d
live sydney
Many thanks for share your blog site here. Rank Checker Online
ReplyDeleteThis is a nice and informative, containing all information and also has a great impact on the new technology. Thanks for sharing it
ReplyDeletewebsite designing Service
Excellent and very cool idea and great content of different kinds of the valuable information's.
ReplyDeleteTOEFL Coaching in Chennai
TOEFL Coaching Classes in Chennai
Blockchain Training in Chennai
German Courses in Chennai
French Language Classes in Chennai
Xamarin Training in Chennai
spanish courses in chennai
content writing course in chennai
TOEFL Coaching in Porur
TOEFL Coaching in Adyar
Popular Fashion Blogs in Surat
ReplyDeleteFashion Blogger in Surat
Surat Blogger
Indian Fashion Blogger