Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support JSF validation messages customizations #179

Open
yurem opened this issue Feb 6, 2020 · 0 comments
Open

Support JSF validation messages customizations #179

yurem opened this issue Feb 6, 2020 · 0 comments
Assignees
Labels
enhancement Needs Documentation Issue that requires documentation to be added in Gluu docs
Milestone

Comments

@yurem
Copy link
Contributor

yurem commented Feb 6, 2020

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.

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.

@yurem yurem added enhancement Needs Documentation Issue that requires documentation to be added in Gluu docs labels Feb 6, 2020
@yurem yurem added this to the 4.2 milestone Feb 6, 2020
@yurem yurem self-assigned this Feb 6, 2020
@yurem yurem modified the milestones: 4.2, 4.1.1 Feb 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Needs Documentation Issue that requires documentation to be added in Gluu docs
Projects
None yet
Development

No branches or pull requests

1 participant