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
Post a Comment