java - How to detect client locale in JSF application? -


how can use servletrequest.getlocale() in jsf application, when servlet absent in code , provided jsf implementation? i'm trying use servletcontextlistener, possible reach servletrequest servletcontextevent?

anyway, correct approach?

facescontext.getcurrentinstance().getexternalcontext().getrequestlocale(); 

?


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -