allow to specify default value for h:message(s) errorClass etc. in MessageBundle
- Dominant language
- Java
- Stars
- 127
- Forks
- 59
- Avg merge
- 23h
- Merged PRs (30d)
- 7
Description
h:message and h:messages define errorClass, infoClass etc. attributes.
To have a common look and feel in the whole webapplication, the developer
currently has to specify these attributes on each occurrence of the tag in the
view or create a custom component that wraps h:message(s)
It should be possible to define a default value for
errorClass, infoClass etc. through MessageBundles like its possible
to override converter/validation messages.
As far as I've looked into this, it would simply require the
com/sun/faces/MessageRenderer (or other impls) to first lookup the key in the
MessageBundle.
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.0]
Contributor guide
Research direction
Start by reviewing com/sun/faces/MessageRenderer and how MessageBundle keys are currently resolved for converter and validation messages. Determine how defaults for errorClass, infoClass, and the other h:message(s) class attributes should be represented and applied. Done means these defaults can be configured through MessageBundles and override the current per-tag behavior consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100