wicket-select2
wicket-select2 copied to clipboard
Select2 javascript should handle Wicket's <ajax-response><redirect> responses
When session expires and user interacts with select2 components, the component will be stuck to the loading state.
This can be replicated:
- go to a stateful page
- remove the JSESSIONID cookie
- click a select2 component which will retrieve selection data from the server
- the component is stuck
One can see using browser's Developer Tools that the Ajax response is something like:
It looks like native Wicket Ajax components uses Ajax-Location header for redirecting. I'm not sure how