Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Wicket bookmarkable url added one additional parameter to the link, why?

my map is

mountPage("/page/#{code}/#{name}", Page.class);

but when I click on the link

localhost/page/10/toy?2

wicket add also one parameter like a counter, when I refresh the page I have

localhost/page/10/toy?3

why?

like image 483
Armen Arzumanyan Avatar asked Jan 17 '26 18:01

Armen Arzumanyan


1 Answers

This is because your page are stateful, Wicket manages its own states to your page by appending this "counter". This way, when your user navigate backward using its browser built-in functionnality, the page is displayed has it has been previously.

If you don't want such a parameter in your URL, you'll need to dig out and eradicate every stateful component in your pages.

like image 171
Cedric Gatay Avatar answered Jan 21 '26 09:01

Cedric Gatay