Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh entire page wicket

Tags:

refresh

wicket

I'm working on a project where the user session is going to be replaced when clicking on a link. Since all the data in the headerpage, footer and content (i.e. the entire page) depends on the session data, the entire page (all subpages) has to be reloaded. I've tried bookmarkablepagelink, but i can not put an action (changing the session) on this link. I've also tried to make a link that changes the session and afterwards click the bookmarkablepagelink programmatically, but i can't find a way to click the link without using javascript (and that is no alternative in this project).

Any good suggestions how to do this?

like image 906
user1728451 Avatar asked Dec 27 '22 16:12

user1728451


1 Answers

In the onClick method for the link, do the session reset and then

setResponsePage(getPage());

and the page should refresh nicely.

like image 113
Don Roby Avatar answered Feb 15 '23 15:02

Don Roby