Domanda

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.

È stato utile?

Soluzione

Application.get().getMarkupFactory().getMarkupCache().clear()
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top