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

Add context param attributes to @FacesConfig #1878

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1802 commits
Select commit Hold shift + click to select a range
beedcf3
+ fixed blanks lines
pizzi80 Jun 25, 2023
8b2d838
+ reverted breaking api changes
pizzi80 Jun 25, 2023
d037633
+ fixed imports
pizzi80 Jun 25, 2023
e2b9e8b
+ fixed imports
pizzi80 Jun 25, 2023
b06d598
+ fixed toArray without size
pizzi80 Jun 25, 2023
ae1c3e8
+ fixed imports
pizzi80 Jun 25, 2023
0bb88af
optimizations
pizzi80 Jun 25, 2023
991b9f3
Merge pull request #5239 from eclipse-ee4j/mojarra_issue_5188
arjantijms Jun 28, 2023
ff2bce8
Merge pull request #5240 from eclipse-ee4j/mojarra_issue_5189
arjantijms Jun 28, 2023
4e766ed
Merge pull request #5246 from pizzi80/4.1.0_stringbuilder
BalusC Jul 1, 2023
9cfcb5a
Merge pull request #5249 from pizzi80/4.1.0_optimizations_from_master
BalusC Jul 1, 2023
e392946
Merge pull request #5251 from pizzi80/4.1.0_urlbuilder
BalusC Jul 1, 2023
fc5af2e
Merge pull request #5253 from pizzi80/4.1.0_utils
BalusC Jul 1, 2023
0240f09
Merge pull request #5254 from pizzi80/4.1.0_config_init
BalusC Jul 1, 2023
c1d183a
Merge pull request #5266 from pizzi80/4.1.0_LRU_cache_v2
BalusC Jul 1, 2023
58b5006
Merge pull request #5268 from jamezp/issue5262-4.0
BalusC Jul 1, 2023
7d96f03
Merge pull request #5263 from jamezp/issue5262
BalusC Jul 1, 2023
e8019b2
Merge pull request #5250 from pizzi80/4.1.0.final_fields_from_master
BalusC Jul 1, 2023
572bdf8
https://github.com/eclipse-ee4j/mojarra/issues/5264
BalusC Jul 1, 2023
be5ca13
Merge #5188 and #5189 from 2.3 into 3.0
BalusC Jul 2, 2023
1e038bc
Merge #5188 and #5189 from 3.0 into 4.0
BalusC Jul 2, 2023
5fb57a6
Merge #5188 and #5189 from 4.0 into master
BalusC Jul 2, 2023
e6da4bb
Merge branch 'master' into 4.1.0_utils_depend
BalusC Jul 2, 2023
90103af
fixed imports
pizzi80 Jul 3, 2023
8d3c9e8
fixed typo
pizzi80 Jul 3, 2023
a43baf8
VALUES_BY_NAME changed to private
pizzi80 Jul 3, 2023
f93377f
Merge branch 'master' into 4.1.0_faces_message
pizzi80 Jul 3, 2023
b1c2f3c
+ fixed: form.id always included in the ajax payload
pizzi80 Jul 7, 2023
0db59c5
Merge pull request #5255 from pizzi80/4.1.0_phase_id
BalusC Jul 9, 2023
17fbd5c
Merge pull request #5256 from pizzi80/4.1.0_utils_depend
BalusC Jul 9, 2023
28876a9
Merge pull request #5260 from pizzi80/4.1.0_faces_message
BalusC Jul 9, 2023
2d0c6e8
Merge pull request #5271 from eclipse-ee4j/mojarra_issue_5264
BalusC Jul 9, 2023
a1e620e
Merge #5264 remote-tracking branch 'origin/4.0'
BalusC Jul 9, 2023
478e438
Merge branch '4.0' into mojarra_issue_5232
BalusC Jul 9, 2023
8d59b3d
https://github.com/eclipse-ee4j/mojarra/issues/5232
BalusC Jul 9, 2023
32c1810
https://github.com/eclipse-ee4j/mojarra/issues/5273
BalusC Jul 9, 2023
d324508
https://github.com/eclipse-ee4j/mojarra/issues/5232
BalusC Jul 9, 2023
b590ed4
https://github.com/eclipse-ee4j/mojarra/issues/5272
BalusC Jul 9, 2023
0095508
Merge pull request #5274 from pizzi80/4.1.0_faces_js_from_master
BalusC Jul 15, 2023
12c1470
mvn versions:set -DnewVersion=5.0.0-SNAPSHOT
BalusC Jul 16, 2023
7902f2b
Merge pull request #5275 from eclipse-ee4j/mojarra_issue_5273
arjantijms Jul 21, 2023
36bf2a0
Merge pull request #5276 from eclipse-ee4j/mojarra_issue_5272
arjantijms Jul 21, 2023
a8581ad
Merge #5272 and #5273 from 4.0 into 4.1
BalusC Jul 22, 2023
2a17b40
Merge #5272 and #5273 from 4.1 into master
BalusC Jul 22, 2023
cd85a78
Merge pull request #5243 from eclipse-ee4j/faces_issue_1819-_add_UUID…
BalusC Jul 22, 2023
b4c3060
Merge https://github.com/jakartaee/faces/issues/1819 from 4.1 into
BalusC Jul 22, 2023
e10a16a
4.0.2 was already released?!
BalusC Jul 22, 2023
3a209ad
Prepare release org.glassfish:mojarra-parent:3.0.5
mojarra-bot Jul 22, 2023
08eded8
Prepare next development cycle for 3.0.6-SNAPSHOT
mojarra-bot Jul 22, 2023
dbc13f6
Prepare release org.glassfish:mojarra-parent:2.3.20
mojarra-bot Jul 22, 2023
514c807
Prepare next development cycle for 2.3.21-SNAPSHOT
mojarra-bot Jul 22, 2023
cb11ffa
Bump version to 4.0.3
BalusC Jul 22, 2023
2f79c9d
Prepare release org.glassfish:mojarra-parent:4.0.3
mojarra-bot Jul 22, 2023
a718863
Prepare next development cycle for 4.0.4-SNAPSHOT
mojarra-bot Jul 22, 2023
10db1ea
Rewrite for 4.x instead of 3.x
BalusC Jul 22, 2023
607519a
Merge remote-tracking branch 'origin/4.0' into 4.1
BalusC Jul 22, 2023
7a7907a
https://github.com/jakartaee/faces/issues/1823
BalusC Jul 22, 2023
0908937
Microoptimization
BalusC Jul 22, 2023
3dae4c7
https://github.com/jakartaee/faces/issues/1821
BalusC Jul 22, 2023
0f70e4d
https://github.com/jakartaee/faces/issues/1821
BalusC Jul 22, 2023
c4eba5c
https://github.com/jakartaee/faces/issues/1828
BalusC Jul 22, 2023
61097cd
https://github.com/jakartaee/faces/issues/1811
BalusC Jul 22, 2023
7b2cc1f
Describe work wrt milestones
BalusC Jul 22, 2023
e473437
Merge pull request #5282 from eclipse-ee4j/2.3.20
BalusC Jul 22, 2023
b51f213
Update pom.xml to actually say 3.0.6-SNAPSHOT
BalusC Jul 22, 2023
e13d5df
Merge pull request #5283 from eclipse-ee4j/3.0.5
BalusC Jul 22, 2023
70c1edf
https://github.com/jakartaee/faces/issues/1830
BalusC Jul 22, 2023
a18d500
https://github.com/jakartaee/faces/issues/1707
BalusC Jul 22, 2023
c39a138
Merge pull request #5286 from eclipse-ee4j/4.0.3
BalusC Jul 23, 2023
4f8d049
https://github.com/eclipse-ee4j/mojarra/issues/5213
BalusC Jul 23, 2023
910f0f7
https://github.com/jakartaee/faces/issues/1712
BalusC Jul 23, 2023
4efae83
https://github.com/jakartaee/faces/issues/1713
BalusC Jul 23, 2023
50036e7
https://github.com/jakartaee/faces/issues/1713
BalusC Jul 23, 2023
cbcbc85
Merge pull request #5285 from eclipse-ee4j/faces-issue-1707
arjantijms Jul 27, 2023
8b46bc4
Merge pull request #5278 from eclipse-ee4j/faces_issue_1823
BalusC Jul 29, 2023
5b599d5
Merge pull request #5279 from eclipse-ee4j/faces_issue_1821
BalusC Jul 29, 2023
3060a3d
Merge branch '4.1' into faces_issue_1828
BalusC Jul 29, 2023
da55cff
Merge pull request #5280 from eclipse-ee4j/faces_issue_1828
BalusC Jul 29, 2023
caa3fbb
Merge pull request #5284 from eclipse-ee4j/faces_issue_1830-remove_de…
BalusC Jul 29, 2023
24724c7
Merge pull request #5288 from eclipse-ee4j/faces_issue_1712
BalusC Jul 29, 2023
d041e57
Merged 4.1 into 5.0
BalusC Jul 29, 2023
37eaf36
https://github.com/eclipse-ee4j/mojarra/issues/5213
BalusC Jul 29, 2023
e0cd6ec
https://github.com/eclipse-ee4j/mojarra/issues/5291
BalusC Jul 29, 2023
1f69399
https://github.com/jakartaee/faces/issues/1567
BalusC Jul 30, 2023
db8b436
Improved javadoc comment
BalusC Jul 30, 2023
6a11c61
Fixed comment references
BalusC Jul 30, 2023
1173145
https://github.com/jakartaee/faces/issues/1708
BalusC Jul 30, 2023
965c7c5
useless cast to T inside DataModelIterator<T>
pizzi80 Aug 11, 2023
47bbc3e
UIComponentBase typos
pizzi80 Aug 11, 2023
f246a54
UIComponentBase typos
pizzi80 Aug 11, 2023
6e2ef32
Fixes #5298 - Mark 2.3 as EOL
mnriem Aug 13, 2023
65d7fdb
UIData: return static empty data model if value is null
pizzi80 Aug 14, 2023
2e192eb
Merge pull request #5302 from mnriem/issue-5298
mnriem Aug 14, 2023
c277945
Make FacesMessage#VALUES / VALUES_MAP generic
pizzi80 Aug 30, 2023
0d12516
Make FacesMessage#VALUES / VALUES_MAP generic
pizzi80 Aug 30, 2023
8f8f5eb
Merge pull request #5300 from pizzi80/data_model_iterator_generics
BalusC Sep 2, 2023
3ea6438
Merge pull request #5301 from pizzi80/component_base_typo
BalusC Sep 2, 2023
44fbb76
Merge pull request #5305 from pizzi80/4.1_mojarra_official_faces_issu…
BalusC Sep 2, 2023
6af96e3
Merge remote-tracking branch 'origin/2.3' into 3.0
BalusC Sep 2, 2023
a8f7d0c
Merge remote-tracking branch 'origin/3.0' into 4.0
BalusC Sep 2, 2023
25baa0c
Merge remote-tracking branch 'origin/4.0' into 4.1
BalusC Sep 2, 2023
7e6fa06
Merge remote-tracking branch 'origin/4.1'
BalusC Sep 2, 2023
2ac516a
Revert "https://github.com/jakartaee/faces/issues/1707 deprecate custom
BalusC Sep 2, 2023
d0aa2b7
Merge remote-tracking branch 'origin/4.1'
BalusC Sep 2, 2023
4e26124
Merge pull request #5304 from pizzi80/2.3
BalusC Sep 2, 2023
5649a0c
Merge #5304 from 2.3 into 3.0
BalusC Sep 2, 2023
e0f7aa8
Merge #5304 from 3.0 into 4.0
BalusC Sep 2, 2023
26f60cf
Merge #5304 from 4.0 into 4.1
BalusC Sep 2, 2023
7c3e690
Merge #5304 from 4.1 into 5.0
BalusC Sep 2, 2023
a33cb30
faces.js replace dom element inside table regression fixed
pizzi80 Sep 5, 2023
ffe1e11
Fix #5308 ambiguous resolution during release of FacesContext when there
BalusC Sep 7, 2023
479c9cc
Merge pull request #5309 from eclipse-ee4j/mojarra_issue_5308
arjantijms Sep 7, 2023
d216c10
Merge pull request #5293 from eclipse-ee4j/mojarra_issue_5291
arjantijms Sep 7, 2023
a1f0134
Merge pull request #5238 from eclipse-ee4j/mojarra_issue_5232
arjantijms Sep 7, 2023
78f23a2
Merge pull request #5294 from eclipse-ee4j/faces_issue_1567
arjantijms Sep 7, 2023
a86a228
Merge pull request #5287 from eclipse-ee4j/mojarra_issue_5213
arjantijms Sep 7, 2023
93ecf20
Merge 2.3 into 3.0
BalusC Sep 7, 2023
119fa9f
Merge 3.0 into 4.0
BalusC Sep 7, 2023
b9ca011
Merge 4.0 into 4.1
BalusC Sep 7, 2023
f4bc467
Merge 4.1 into 5.0
BalusC Sep 7, 2023
787ee5b
Fixed merge error during
BalusC Sep 7, 2023
963d3cf
Fix javadoc errors on #5032 (com.sun.faces.* is also checked in 4.0)
BalusC Sep 7, 2023
131dc30
Merge pull request #5310 from eclipse-ee4j/mojarra_issue_5032_fix_jav…
BalusC Sep 7, 2023
f17b378
Merge remote-tracking branch 'origin/2.3' into 3.0
BalusC Sep 7, 2023
f6e1295
Merge #5310 from 2.3 into 3.0
BalusC Sep 7, 2023
34e1326
Merge #5310 from 4.0 into 4.1
BalusC Sep 7, 2023
ca354f7
Merge #5310 from 4.1 into 5.0
BalusC Sep 7, 2023
d7029ed
https://github.com/jakartaee/faces/issues/1567
BalusC Sep 8, 2023
1dc0e7f
Merge pull request #5311 from eclipse-ee4j/faces_issue_1567_regressio…
arjantijms Sep 8, 2023
2066346
Merge remote-tracking branch 'origin/2.3' into 3.0
BalusC Sep 8, 2023
0921daa
Merge #5311 from 3.0 into 4.0
BalusC Sep 8, 2023
cade998
Merge #5311 from 4.0 into 4.1
BalusC Sep 8, 2023
6a0c166
Merge #5311 from 4.1 into 5.0
BalusC Sep 8, 2023
1d2268c
Fixed regression error which caused 3rd form of spec1567IT to fail; the
BalusC Sep 8, 2023
cdf3819
Merge pull request #5312 from eclipse-ee4j/faces_issue_1567_regressio…
arjantijms Sep 8, 2023
f2ca5bf
Merge #5312 from 2.3 into 3.0
BalusC Sep 8, 2023
4374385
Merge #5312 from 3.0 into 4.0
BalusC Sep 8, 2023
c88283c
Merge #5312 from 4.0 into 4.1
BalusC Sep 8, 2023
e0071e0
Merge #5312 from 4.1 into 5.0
BalusC Sep 8, 2023
5256df0
Prepare release org.glassfish:mojarra-parent:4.0.4
mojarra-bot Sep 8, 2023
606b3c7
Prepare next development cycle for 4.0.5-SNAPSHOT
mojarra-bot Sep 8, 2023
e21dd15
Prepare release org.glassfish:mojarra-parent:2.3.21
mojarra-bot Sep 8, 2023
f4b475f
Prepare next development cycle for 2.3.22-SNAPSHOT
mojarra-bot Sep 8, 2023
20a335c
Merge pull request #5313 from eclipse-ee4j/2.3.21
BalusC Sep 9, 2023
4cc3b85
Merge 2.3 into 3.0
BalusC Sep 9, 2023
2201ed3
Merge pull request #5314 from eclipse-ee4j/4.0.4
BalusC Sep 9, 2023
b6416cd
Merge branch '3.0' into 4.0
BalusC Sep 9, 2023
29f6055
Merge 4.0 into 4.1
BalusC Sep 9, 2023
a30dcd6
Merge 4.1 into 5.0
BalusC Sep 9, 2023
1f272e5
Composite component can't find reparented child when it's in turn in
BalusC Sep 9, 2023
cdea232
Merge pull request #5315 from eclipse-ee4j/mojarra_issue_5214
BalusC Sep 16, 2023
a22c77c
Revert "Revert "https://github.com/jakartaee/faces/issues/1707 deprecate
BalusC Sep 16, 2023
62711cc
Merge branch '4.1'
BalusC Sep 16, 2023
c826b42
Merge #5315 from 4.0 into 4.1
BalusC Sep 16, 2023
bc5678c
Merge #5315 from 4.1 into 5.0
BalusC Sep 16, 2023
5459854
https://github.com/eclipse-ee4j/mojarra/issues/5245
BalusC Sep 23, 2023
6e8224e
Move back weld reinit from ConfigureListener into FacesInitializer
BalusC Sep 30, 2023
787c9af
Merge pull request #5307 from pizzi80/4.1_mojarra_official_facesjs_re…
BalusC Sep 30, 2023
cf13cbd
Merge #5307 from 4.1 into 5.0
BalusC Sep 30, 2023
5000f60
Fixes #5316 - ClientWindow: Custom PrimeClientWindowFactory not being…
mnriem Oct 1, 2023
08997de
Fixes #5316 - ClientWindow: Custom PrimeClientWindowFactory not being…
mnriem Oct 1, 2023
9e5d4f6
Merge #5316 from 4.0 into 4.1
BalusC Oct 1, 2023
31a3b14
Merge #5316 from 4.1 into 5.0
BalusC Oct 1, 2023
0037a76
Merge ActionSource2 back into ActionSource and deprecate ActionSource2
BalusC Oct 1, 2023
e781bbd
Merge pull request #5281 from eclipse-ee4j/faces_issue_1811
arjantijms Oct 5, 2023
9918261
Merge pull request #5295 from eclipse-ee4j/faces_issue_1708
arjantijms Oct 5, 2023
fa1b600
Merge pull request #5318 from eclipse-ee4j/mojarra_issue_5245_migrate…
arjantijms Oct 5, 2023
a3f2262
Merge 4.1 into 5.0 with:
BalusC Oct 7, 2023
67d4e69
Merge branch '4.1' into faces_issue_1832_merge_ActionSource2_back_int…
BalusC Oct 7, 2023
23654f6
Merge pull request #5326 from eclipse-ee4j/faces_issue_1832_merge_Act…
BalusC Oct 7, 2023
b7fa1b1
Merge #5327 from 4.1 into 5.0
BalusC Oct 7, 2023
86542b6
Merge branch 'master' of git@github.com:eclipse-ee4j/mojarra.git
BalusC Oct 7, 2023
c2034cc
Merge pull request #5324 from eclipse-ee4j/mojarra_issue_5321_fix_fai…
BalusC Oct 7, 2023
9934c0f
Merge remote-tracking branch 'origin/4.0' into 4.1
BalusC Oct 7, 2023
967a9e7
Merge remote-tracking branch 'origin/4.1'
BalusC Oct 7, 2023
e391d5e
Fixes #5000 - Change Mojarra implementation artifactId to mojarra (#5…
mnriem Oct 8, 2023
ac29649
Refactor retrieval and validation of webapp contracts directory into a
BalusC Oct 8, 2023
9f72851
Fixed creepy whitespace after self-review
BalusC Oct 8, 2023
0a88f91
Neutralize xml namespace in exception message as this isn't per
BalusC Oct 8, 2023
c694635
Merge pull request #5330 from eclipse-ee4j/mojarra_issue_5329_contrac…
BalusC Oct 14, 2023
0f214f1
Merge #5329 from 4.0 into 4.1
BalusC Oct 14, 2023
b0733a2
Merge #5329 from 4.1 into 5.0
BalusC Oct 14, 2023
05991b5
Merge branch 'master' into faces_issue_1713
BalusC Oct 14, 2023
f45d5ae
Remove unused constants for com.sun.faces.* context params
BalusC Oct 14, 2023
d05853e
Faces 5.0: add StateManager.StateSavingMethod enum
BalusC Oct 15, 2023
644cc7c
Faces 5.0: add UIInput.ValidateEmptyFields enum #5335
BalusC Oct 15, 2023
8c5a445
Fixed javadoc error #5333
BalusC Oct 15, 2023
bd467e4
Faces 4.1: deprecate FSS #5337
BalusC Oct 15, 2023
b16131f
Remove statements #5337
BalusC Oct 15, 2023
20b1193
Merge pull request #5336 from eclipse-ee4j/mojarra_issue_5335_add_Val…
BalusC Oct 15, 2023
ac78433
Merge pull request #5334 from eclipse-ee4j/mojarra_issue_5333_add_Sta…
BalusC Oct 15, 2023
c5fe7d1
Spec 1739: Require firing events for Initialized, BeforeDestroyed, De…
volosied Oct 19, 2023
0ae839a
[MOJARRA_5341] UnsupportedOperationException in InitFacesContext
jasondlee Oct 19, 2023
7d531cb
Merge pull request #5342 from jasondlee/MOJARRA_5341
BalusC Oct 21, 2023
329b720
Merge #5341 from 4.0 into 4.1
BalusC Oct 21, 2023
a08f3d1
Merge #5341 from 4.1 into 5.0
BalusC Oct 21, 2023
8b62f62
Merge pull request #5338 from eclipse-ee4j/mojarra_issue_5337_depreca…
BalusC Oct 21, 2023
2de2dbd
Merge #5337 from 4.1 into 5.0
BalusC Oct 21, 2023
dc7155f
Merge pull request #5340 from volosied/spec1739
BalusC Oct 21, 2023
5127e13
Backport pull request #5340 from 5.0 into 4.1
BalusC Oct 21, 2023
960e689
Merge 4.1 into 5.0
BalusC Oct 21, 2023
e2907ab
Merge pull request #5332 from eclipse-ee4j/mojarra_issue_5331_remove_…
BalusC Oct 21, 2023
8bf0260
Merge #5331 from 4.0 into 4.1
BalusC Oct 21, 2023
cc3fa65
Merge #5331 from 4.1 into 5.0
BalusC Oct 21, 2023
14dc7d7
Improved impl of #5339
BalusC Oct 21, 2023
886f1bc
Further improved impl of #5339
BalusC Oct 22, 2023
3456fc8
Merge pull request #5343 from eclipse-ee4j/mojarra_pr_5339_improved_impl
BalusC Oct 28, 2023
242879a
Merge #5343 from 4.0 into 4.1
BalusC Oct 28, 2023
6d16372
Merge #5343 from 4.1 into 5.0
BalusC Oct 28, 2023
b754379
Merge pull request #5289 from eclipse-ee4j/faces_issue_1713
BalusC Oct 28, 2023
1a24255
Ensure that all default values of context params are already in spec
BalusC Oct 28, 2023
0d99a4c
Add new FacesConfig.ContextParam enum
BalusC Oct 28, 2023
3144516
Utilize new FacesConfig.ContextParam enum
BalusC Oct 28, 2023
a1016c7
Fixed broken tests after adding new FacesConfig.ContextParam enum
BalusC Oct 28, 2023
823732f
[5345] Do not override application-specified "com.sun.faces.enableDis…
pferraro Oct 31, 2023
7f3e522
[5345] Do not override application-specified "com.sun.faces.enableDis…
pferraro Oct 31, 2023
918a36a
Merge pull request #5347 from pferraro/4.0
BalusC Nov 4, 2023
bc38107
Merge pull request #5346 from pferraro/master
BalusC Nov 4, 2023
f60e79f
Merge #5347 from 4.0 into 4.1
BalusC Nov 4, 2023
6b9205a
Merge #5347 from 4.1 into 5.0
BalusC Nov 4, 2023
f2fc252
Specify injection of Flow
BalusC Nov 4, 2023
2c85c8b
Implement injection of Flow
BalusC Nov 4, 2023
a7e53c8
Specify new rowStatePreserved attribute for ui:repeat
BalusC Nov 4, 2023
9d4e2e9
Refactor static logic associated with rowStatePreserved from UIData into
BalusC Nov 4, 2023
f7829ab
Implement new rowStatePreserved attribute for UIRepeat
BalusC Nov 4, 2023
84588ff
Bump to Java 17
BalusC Nov 4, 2023
536e7f3
Deprecate <composite:extension>
BalusC Nov 4, 2023
633a784
Improved doc after self-review
BalusC Nov 4, 2023
1e74d09
Clarified vdldoc after self-review and added javadoc nonetheless to
BalusC Nov 4, 2023
3292dc0
Interim commit for #4480 (#5319)
mnriem Nov 6, 2023
665bd91
Merge pull request #5350 from eclipse-ee4j/bump_to_java17
BalusC Nov 11, 2023
40299b2
Merge pull request #5352 from eclipse-ee4j/mojarra_issue_5351_depreca…
BalusC Nov 11, 2023
1ce8950
Merge #5351 from 4.1 into 5.0
BalusC Nov 11, 2023
c4f0218
Merge branch '4.1' into faces_issue_1263_add_rowStatePreserved_to_UIR…
BalusC Nov 11, 2023
aea1be1
Merge branch 'faces_issue_1263_add_rowStatePreserved_to_UIRepeat' into
BalusC Nov 11, 2023
a8a46b8
Merge pull request #5349 from eclipse-ee4j/faces_issue_1263_add_rowSt…
BalusC Nov 11, 2023
bbbff3c
Merge pull request #5353 from eclipse-ee4j/faces_issue_1263_add_rowSt…
BalusC Nov 11, 2023
21d0165
Merge #5349 from 4.1 into 5.0
BalusC Nov 11, 2023
15f6223
Merge pull request #5348 from eclipse-ee4j/faces_issue_1342_support_i…
BalusC Nov 11, 2023
70c4185
Merge #5348 from 4.1 into 5.0
BalusC Nov 11, 2023
e14c3a9
Address "RESOLVE THIS" concerns wrt InjectionProvider by simply using
BalusC Nov 12, 2023
2d7dd8d
Address "RESOLVE THIS" concerns wrt InitFacesContext by simply using
BalusC Nov 12, 2023
42cee97
Fixed failing unit tests caused by using CDI as injection provider --
BalusC Nov 12, 2023
6e1aa5f
Remove already resolved "RESOLVE THIS" comments
BalusC Nov 12, 2023
5182deb
Fixed failing ELUtilsTest
BalusC Nov 12, 2023
63e22cf
It's more intuitive that PreDestroy is invoked in reverse order as
BalusC Nov 12, 2023
13678d8
Further improved postconstruct/predestroy by delegating it to CDI
BalusC Nov 12, 2023
44792f8
Merge pull request #5354 from eclipse-ee4j/use_cdi_as_injection_provider
BalusC Nov 12, 2023
656e9be
Merge branch 'master' into
BalusC Nov 12, 2023
a891822
Merge remote-tracking branch
BalusC Feb 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
718 changes: 715 additions & 3 deletions api/src/main/java/jakarta/faces/annotation/FacesConfig.java

Large diffs are not rendered by default.

67 changes: 67 additions & 0 deletions api/src/main/java/jakarta/faces/annotation/PackageUtils.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*
* Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package jakarta.faces.annotation;

import static java.util.stream.Collectors.toSet;

import java.lang.annotation.Annotation;
import java.util.Comparator;
import java.util.Set;

import jakarta.annotation.Priority;
import jakarta.enterprise.inject.spi.BeanManager;
import jakarta.enterprise.inject.spi.CDI;
import jakarta.faces.context.FacesContext;

class PackageUtils {

private PackageUtils() {
}

/**
* This does unfortunately not exist in cdi spec: https://stackoverflow.com/a/63653513
*
* This basically sorts descending by priority with fallback to FQN.
* Highest priority first.
* Priotityless bean last.
* Same priorities ordered by FQN (for now?)
*/
public static final Comparator<Object> BEAN_PRIORITY_COMPARATOR = (left, right) -> {
Class<?> leftClass = left.getClass();
Class<?> rightClass = right.getClass();
Priority leftPriority = leftClass.getAnnotation(Priority.class);
Priority rightPriority = rightClass.getAnnotation(Priority.class);

int compare = leftPriority != null && rightPriority != null ? Integer.compare(leftPriority.value(), rightPriority.value())
: leftPriority != null ? -1
: rightPriority != null ? 1
: 0;

if (compare == 0) {
return leftClass.getName().compareTo(rightClass.getName());
}

return compare;
};

public static Set<?> getBeanReferencesByQualifier(FacesContext context, Annotation... qualifiers) {
BeanManager beanManager = CDI.current().getBeanManager();
return beanManager.getBeans(Object.class, qualifiers).stream()
.map(bean -> beanManager.getReference(bean, bean.getBeanClass(), beanManager.createCreationalContext(bean)))
.collect(toSet());
}

}
24 changes: 21 additions & 3 deletions api/src/main/java/jakarta/faces/application/ResourceHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -191,26 +191,44 @@ public abstract class ResourceHandler {
* {@link #WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME} exists, the runtime must interpret its value as a path, relative to
* the web app root, where resources are to be located. This param value must not start with a "/", though it may
* contain "/" characters. If no such <code>&lt;context-param&gt;</code> exists, or its value is invalid, the value
* "resources", without the quotes, must be used by the runtime as the value.
* {@value #WEBAPP_RESOURCES_DIRECTORY_DEFAULT_VALUE}, without the quotes, must be used by the runtime as the value.
* </p>
*
* @since 2.2
*/
public static final String WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME = "jakarta.faces.WEBAPP_RESOURCES_DIRECTORY";

/**
* <p class="changed_added_5_0">
* The default value of the {@link #WEBAPP_RESOURCES_DIRECTORY_PARAM_NAME} context-param.
* </p>
*
* @since 5.0
*/
public static final String WEBAPP_RESOURCES_DIRECTORY_DEFAULT_VALUE = "resources";

/**
* <p class="changed_added_2_2">
* If a <code>&lt;context-param&gt;</code> with the param name equal to the value of
* {@link #WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME} exists, the runtime must interpret its value as a path, relative to
* the web app root, where resource library contracts are to be located. This param value must not start with a "/",
* though it may contain "/" characters. If no such <code>&lt;context-param&gt;</code> exists, or its value is invalid,
* the value "contracts", without the quotes, must be used by the runtime as the value.
* the value {@value #WEBAPP_CONTRACTS_DIRECTORY_DEFAULT_VALUE}, without the quotes, must be used by the runtime as the value.
* </p>
*
* @since 2.2
*/
public static final String WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME = "jakarta.faces.WEBAPP_CONTRACTS_DIRECTORY";

/**
* <p class="changed_added_5_0">
* The default value of the {@link #WEBAPP_CONTRACTS_DIRECTORY_PARAM_NAME} context-param.
* </p>
*
* @since 5.0
*/
public static final String WEBAPP_CONTRACTS_DIRECTORY_DEFAULT_VALUE = "contracts";

/**
* <p class="changed_added_2_0">
* The name of a key within the application message bundle named by the return from {@link Application#getMessageBundle}
Expand All @@ -235,7 +253,7 @@ public abstract class ResourceHandler {
* The default value for the {@link #RESOURCE_EXCLUDES_PARAM_NAME} init param.
* </p>
*/
public static final String RESOURCE_EXCLUDES_DEFAULT_VALUE = ".class .jsp .jspx .properties .xhtml .groovy";
public static final String RESOURCE_EXCLUDES_DEFAULT_VALUE = ".class .jsp .jspx .properties .xhtml .groovy"; // NOTE: when changing, ensure {@link FacesConfig#resourceExcludes()} is also adjusted.

// ---------------------------------------------------------- Public Methods

Expand Down
12 changes: 3 additions & 9 deletions api/src/main/java/jakarta/faces/application/StateManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.io.IOException;
import java.util.Map;

import jakarta.faces.annotation.FacesConfig.ContextParam;
import jakarta.faces.context.FacesContext;
import jakarta.faces.context.ResponseWriter;
import jakarta.faces.render.RenderKit;
Expand Down Expand Up @@ -237,16 +238,9 @@ public void writeState(FacesContext context, Object state) throws IOException {
* @throws NullPointerException if <code>context</code> is <code>null</code>.
*/
public boolean isSavingStateInClient(FacesContext context) {
if (savingStateInClient != null) {
return savingStateInClient;
if (savingStateInClient == null) {
savingStateInClient = ContextParam.STATE_SAVING_METHOD.isDefault(context);
}
savingStateInClient = false;

String saveStateParam = context.getExternalContext().getInitParameter(STATE_SAVING_METHOD_PARAM_NAME);
if (StateSavingMethod.CLIENT.name().equalsIgnoreCase(saveStateParam)) {
savingStateInClient = true;
}

return savingStateInClient;
}

Expand Down
12 changes: 11 additions & 1 deletion api/src/main/java/jakarta/faces/application/ViewHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ public abstract class ViewHandler {

/**
* <p class="changed_added_2_2 changed_modified_4_1">
* The buffer size to set on the response when the ResponseWriter is generated. By default the value is 1024. A value of
* The buffer size to set on the response when the ResponseWriter is generated. By default the value is
* {@value #FACELETS_BUFFER_SIZE_DEFAULT_VALUE}. A value of
* -1 will not assign a buffer size on the response. This should be increased if you are using development mode in order
* to guarantee that the response isn't partially rendered when an error is generated.
* </p>
Expand All @@ -136,6 +137,15 @@ public abstract class ViewHandler {
*/
public static final String FACELETS_BUFFER_SIZE_PARAM_NAME = "jakarta.faces.FACELETS_BUFFER_SIZE";

/**
* <p class="changed_added_5_0">
* The default value of the {@link #FACELETS_BUFFER_SIZE_PARAM_NAME} context-param.
* </p>
*
* @since 5.0
*/
public static final int FACELETS_BUFFER_SIZE_DEFAULT_VALUE = 1024;

/**
* <p class="changed_added_2_2 changed_modified_4_1">
* <span class="changed_modified_2_3">When</span> a page is requested, what interval in seconds should the compiler
Expand Down
29 changes: 17 additions & 12 deletions api/src/main/java/jakarta/faces/component/UIInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
import jakarta.el.ELException;
import jakarta.el.ValueExpression;
import jakarta.faces.FacesException;
import jakarta.faces.annotation.FacesConfig.ContextParam;
import jakarta.faces.application.Application;
import jakarta.faces.application.FacesMessage;
import jakarta.faces.context.ExceptionHandler;
import jakarta.faces.context.ExternalContext;
import jakarta.faces.context.FacesContext;
import jakarta.faces.convert.Converter;
import jakarta.faces.convert.ConverterException;
Expand Down Expand Up @@ -255,7 +255,6 @@ enum PropertyKeys {
*/
public UIInput() {

super();
setRendererType("jakarta.faces.Text");

}
Expand Down Expand Up @@ -884,8 +883,7 @@ private boolean isSetAlwaysValidateRequired(FacesContext context) {
if (null != bool) {
isSetAlwaysValidateRequired = bool;
} else {
String val = context.getExternalContext().getInitParameter(ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE);
isSetAlwaysValidateRequired = Boolean.valueOf(val);
isSetAlwaysValidateRequired = ContextParam.ALWAYS_PERFORM_VALIDATION_WHEN_REQUIRED_IS_TRUE.isSet(context);
}

return isSetAlwaysValidateRequired;
Expand Down Expand Up @@ -1379,8 +1377,7 @@ private void addConversionErrorMessage(FacesContext context, ConverterException
boolean considerEmptyStringNull(FacesContext ctx) {

if (emptyStringIsNull == null) {
String val = ctx.getExternalContext().getInitParameter(EMPTY_STRING_AS_NULL_PARAM_NAME);
emptyStringIsNull = Boolean.valueOf(val);
emptyStringIsNull = ContextParam.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL.isSet(ctx);
}

return emptyStringIsNull;
Expand All @@ -1390,16 +1387,24 @@ boolean considerEmptyStringNull(FacesContext ctx) {
private boolean validateEmptyFields(FacesContext ctx) {

if (validateEmptyFields == null) {
ExternalContext extCtx = ctx.getExternalContext();
String val = extCtx.getInitParameter(VALIDATE_EMPTY_FIELDS_PARAM_NAME);
ValidateEmptyFields val = null;

if (null == val) {
val = (String) extCtx.getApplicationMap().get(VALIDATE_EMPTY_FIELDS_PARAM_NAME);
if (!ContextParam.VALIDATE_EMPTY_FIELDS.isSet(ctx)) {
String appVal = (String) ctx.getExternalContext().getApplicationMap().get(VALIDATE_EMPTY_FIELDS_PARAM_NAME);

if (appVal != null) {
val = ValidateEmptyFields.valueOf(appVal.toUpperCase());
}
}
if (val == null || ValidateEmptyFields.AUTO.name().equalsIgnoreCase(val)) {

if (val == null) {
val = ContextParam.VALIDATE_EMPTY_FIELDS.getValue(ctx);
}

if (val == ValidateEmptyFields.AUTO) {
validateEmptyFields = isBeansValidationAvailable(ctx);
} else {
validateEmptyFields = Boolean.valueOf(val);
validateEmptyFields = val == ValidateEmptyFields.TRUE;
}
}

Expand Down
12 changes: 2 additions & 10 deletions api/src/main/java/jakarta/faces/component/UINamingContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Collection;
import java.util.logging.Logger;

import jakarta.faces.annotation.FacesConfig.ContextParam;
import jakarta.faces.component.visit.VisitCallback;
import jakarta.faces.component.visit.VisitContext;
import jakarta.faces.context.FacesContext;
Expand Down Expand Up @@ -76,7 +77,6 @@ enum PropertyKeys {
* </p>
*/
public UINamingContainer() {
super();
setRendererType(null);
}

Expand Down Expand Up @@ -113,15 +113,7 @@ public static char getSeparatorChar(FacesContext context) {

Character separatorChar = (Character) context.getAttributes().get(SEPARATOR_CHAR_PARAM_NAME);
if (separatorChar == null) {
String initParam = context.getExternalContext().getInitParameter(SEPARATOR_CHAR_PARAM_NAME);
separatorChar = SEPARATOR_CHAR;
if (initParam != null) {
initParam = initParam.trim();
if (initParam.length() != 0) {
separatorChar = initParam.charAt(0);
}
}

separatorChar = ContextParam.SEPARATOR_CHAR.getValue(context);
context.getAttributes().put(SEPARATOR_CHAR_PARAM_NAME, separatorChar);
}

Expand Down
6 changes: 2 additions & 4 deletions api/src/main/java/jakarta/faces/component/UIWebsocket.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
import java.util.regex.Pattern;

import jakarta.el.ValueExpression;
import jakarta.faces.annotation.FacesConfig.ContextParam;
import jakarta.faces.component.behavior.ClientBehaviorHolder;
import jakarta.faces.context.ExternalContext;
import jakarta.faces.context.FacesContext;
import jakarta.faces.push.Push;
import jakarta.faces.push.PushContext;
Expand Down Expand Up @@ -97,9 +97,7 @@ enum PropertyKeys {
* @throws IllegalStateException When Websocket endpoint is not enabled.
*/
public UIWebsocket() {
ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();

if (!Boolean.parseBoolean(externalContext.getInitParameter(ENABLE_WEBSOCKET_ENDPOINT_PARAM_NAME))) {
if (!ContextParam.ENABLE_WEBSOCKET_ENDPOINT.isSet(FacesContext.getCurrentInstance())) {
throw new IllegalStateException(ERROR_ENDPOINT_NOT_ENABLED);
}
}
Expand Down
21 changes: 20 additions & 1 deletion api/src/main/java/jakarta/faces/lifecycle/ClientWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,23 +94,42 @@ public abstract class ClientWindow {
* <p class="changed_added_2_2">
* The context-param that controls the operation of the <code>ClientWindow</code> feature. The runtime must support the
* values "none" and "url", without the quotes, but other values are possible. If not specified, or the value is not
* understood by the implementation, "none" is assumed.
* understood by the implementation, {@value #CLIENT_WINDOW_MODE_DEFAULT_VALUE} is assumed.
* </p>
*
* @since 2.2
*/
public static final String CLIENT_WINDOW_MODE_PARAM_NAME = "jakarta.faces.CLIENT_WINDOW_MODE";

/**
* <p class="changed_added_5_0">
* The default value of the {@link #CLIENT_WINDOW_MODE_PARAM_NAME} context-param.
* </p>
*
* @since 5.0
*/
public static final String CLIENT_WINDOW_MODE_DEFAULT_VALUE = "none";

/**
* <p class="changed_added_4_0">
* Indicate the max number of ClientWindows, which is used by {@link ClientWindowScoped}.
* <span class="changed_added_5_0">By default the value is {@link #NUMBER_OF_CLIENT_WINDOWS_DEFAULT_VALUE}.</span>
* It is only active when jakarta.faces.CLIENT_WINDOW_MODE is enabled.
* </p>
*
* @since 4.0
*/
public static final String NUMBER_OF_CLIENT_WINDOWS_PARAM_NAME = "jakarta.faces.NUMBER_OF_CLIENT_WINDOWS";

/**
* <p class="changed_added_5_0">
* The default value of the {@link #NUMBER_OF_CLIENT_WINDOWS_PARAM_NAME} context-param.
* </p>
*
* @since 5.0
*/
public static final int NUMBER_OF_CLIENT_WINDOWS_DEFAULT_VALUE = 10;

/**
* <p class="changed_added_2_2">
* This method will be called whenever a URL is generated by the runtime where client window related parameters need to
Expand Down
Loading