ivaynberg / wicket-select2

Provides integration between Apache Wicket and Select2
64 stars 50 forks source link

Select2 javascript should handle Wicket's <ajax-response><redirect> responses #74

Open simokivimaki opened 10 years ago

simokivimaki commented 10 years ago

When session expires and user interacts with select2 components, the component will be stuck to the loading state.

This can be replicated:

  1. go to a stateful page
  2. remove the JSESSIONID cookie
  3. click a select2 component which will retrieve selection data from the server
  4. 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 thing is rendered.