Wednesday, June 22, 2011

get Locale in JSF

public Locale getLocale()
{
FacesContext fc=FacesContext.getCurrentInstance();
UIViewRoot vr= fc.getViewRoot();
Locale lc=vr.getLocale();
return lc;

}

No comments:

Post a Comment