jakartaee / jakartaee/faces

Set state save method per pattern

Open
#1,405 3 comments 0 reactions 0 assignees View on GitHub
Priority: Major state state_saving state_saving_method Type: New Feature
Dominant language
Java
Stars
127
Forks
59
Avg merge
23h
Merged PRs (30d)
7

Description

In JSF the user can choose to save state on the server or the client via the javax.faces.STATE_SAVING_METHOD context parameter. This is a global setting that applies to all views (URLs) in the application.

I would like to propose to additionally make it possible to set this per URL pattern (using the pattern syntax as used by Servlet to map and/or protect URLs).

Setting the state saving method per URL pattern then overrides the global setting. If a given URL is not covered by the URL pattern, the global setting comes into effect.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing javax.faces.STATE_SAVING_METHOD context-parameter behavior and the Servlet URL-pattern syntax referenced in the issue. Determine how per-pattern configuration would override the global setting, while retaining the global value for uncovered URLs; the issue does not name files or 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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.