You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current customization approach allows to override default labels. But it not allows to override JSF validation message. Java provides extensions support which allows to write custom ResourceBundle loader.
We can use [Resource Bundle as an Extension](https://docs.oracle.com/javase/tutorial/i18n/serviceproviders/resourcebundlecontrolprovider.html#register-service-provider). In this case we need to write small library which implements ResourceBundleControlProvider service.
Current customization approach allows to override default labels. But it not allows to override JSF validation message. Java provides extensions support which allows to write custom
ResourceBundle
loader.We can use
[Resource Bundle as an Extension](https://docs.oracle.com/javase/tutorial/i18n/serviceproviders/resourcebundlecontrolprovider.html#register-service-provider)
. In this case we need to write small library which implementsResourceBundleControlProvider
service.Here is sample library structure.
The challenge here that:
The JavaDoc for ServiceLoader.loadInstalled() also states that providers on the application's class path are ignored.
In this case we need to specify java option
-Djava.ext.dirs=lib
with folder which contains java extensions.Addition resource is here.
The text was updated successfully, but these errors were encountered: