jakartaee / jakartaee/faces

Use EL in message bundles

Open
#457 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Component: Platform Integration (except for Bean V Priority: Major Type: Improvement
Dominant language
Java
Stars
127
Forks
59
Avg merge
23h
Merged PRs (30d)
7

Description

Motivation
------

EL is pervasive in JSF, except in one obvious place, message bundles. Adding
this support would be natural for the developer, and in some respects increase
DRY (by not requiring parameters to specified in each place the message is used).

Proposal
------

Support the use of EL in the values of the key-value pairs present in any bundle
that is loaded via `` or via the `` element in
faces-config.xml. The EL expression should be parsed out of the value String,
and evaluated as a value expression.

#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.2 Sprint 8]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the bundle-loading paths named in the proposal: and the element in faces-config.xml. Determine how bundle values are parsed and evaluated, then verify that EL works for both paths and that expressions in message values are covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.