If you want to call LocaleBean in your Login bean, you must run SessionScoped or higher.
If you want to call the Locale bean in the Login bean, you need to do
@ManagedProperty("#{locale}") private LocaleBean locale;
Call the appropriate set of e for this. You don't need it
LocaleBean locale = findBean("locale");
Now you can use the locale, since it is local in your Login Bean:
String s = local.getLocale();
Nuno source share