Question

Wicket reload html resources

I would like to have URL which reload all my application resources

//localhost:8080/myApp/reloadWicket

I know i can achieve it by using :

 getResourceSettings().setResourcePollFrequency()

How can i do it with simple filter/URL

my app is wicket and spring therefore i would like to ignore cases with my spring components , the only thing I would like is to refresh all the *.html resourcres fevery time a certin link is being called.

Était-ce utile?

La solution

Application.get().getMarkupFactory().getMarkupCache().clear()
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top