We've been using Wicket 1.3.7 for a few years now and are currently in the process of upgrading our project to wicket 6.x
I did a lot of research regarding to the page version parameters (e.g. ?1
) being append to every URL, and how to get rid of them. (Could not find detailed information on this in the official documentation, unfortunately.) While doing so I read a lot of statements (from Wicket developers and users like
It is needed to keep track of the page version, otherwise it would not be possible to be stateful
and
You need to make your pages stateless to get rid of it
It was also suggested to use a custom implementation of AbstractComponentMapper
, overriding encodePageComponentInfo
not appending the parameter. Which has the obvious disadvantage of breaking statefulness for the mounted page. (see this SO answer for example)
Yesterday I stumbled upon RenderStrategy.ONE_PASS_RENDER.
I gave it a try, and after doing some testing I have got the impression that this is the setting to "restore the old wicket way": the page version parameters are gone, yet my pages are stateful.
Okay, there's a drawback, too. If have to take care of the double-submit problem myself, but I can live with that.
Question: are there any other drawbacks I am not (yet) aware of? Any surprises to be expected?
It seems to be the perfect solution, I just wondered why there are so many discussion about how to get rid of these parameter, even with wicket developers, where this is not suggested....
Thanks in advance.