What is the best way of saving preferences on client side (eg. language choice) for a JSF WebApp? I would like the data to persist the closing of the browser. Per requirement I can't use the browser locale to detect the preferred language.
I was hoping for something like a BrowserScoped bean. Should I try using a CustomScoped bean (I've never used them before) or should I use plain old JavaScript?
Thanks!