0

The accepted solution given by delete version number in url

causes problems to AJAX for Wicket version 6.13.0 and newer ones. It keeps reloading the whole page endlessly.

-----Updated-----

Later I found out the following solution worked for me (wicket version 6.15.0) by setting the ONE_PASS_RENDER rendering strategy:

class MyApplication extends WebApplication {
    @Override protected void init() {
        getRequestCycleSettings().setRenderStrategy(
            IRequestCycleSettings.RenderStrategy.ONE_PASS_RENDER); 
    }
}

It is suggested by https://stackoverflow.com/a/12422490/2700356

Community
  • 1
  • 1
Yuci
  • 27,235
  • 10
  • 114
  • 113

1 Answers1

-1

For Wicket 7 use this code:

getRequestCycleSettings().setRenderStrategy(RequestCycleSettings.RenderStrategy.ONE_PASS_RENDER);
Tonechas
  • 13,398
  • 16
  • 46
  • 80
Alan Barboza
  • 125
  • 1
  • 1
  • 9