Number of client windows is expected to be limited to configured value 3 (for above case). It is expected that least-recently-used windows get 'forgotten' once windows after 3rd are opened.
Instead, window scoped beans get forgotten/dropped only after 10th window is opened.
Debugging confirms that limit config is ignored and hard-coded value 10 is used instead.
Additional context
From cursory glance, it seems that com.sun.faces.config.WebConfiguration.WebContextInitParameter enum is missing the member for jakarta.faces.NUMBER_OF_CLIENT_WINDOWS.
Observed with Mojarra 4.0.2 on Adoptium Temurin JDK 17.0.6 (desktop Firefox 115.0.2 on Windows 10).
Describe the bug
It seems that context param
jakarta.faces.NUMBER_OF_CLIENT_WINDOWS
is ignored and max number of client windows always (silently) defaults to 10.To Reproduce
Add following in web.xml:
Expected behavior
Number of client windows is expected to be limited to configured value 3 (for above case). It is expected that least-recently-used windows get 'forgotten' once windows after 3rd are opened.
Instead, window scoped beans get forgotten/dropped only after 10th window is opened. Debugging confirms that limit config is ignored and hard-coded value 10 is used instead.
Additional context
From cursory glance, it seems that
com.sun.faces.config.WebConfiguration.WebContextInitParameter
enum is missing the member forjakarta.faces.NUMBER_OF_CLIENT_WINDOWS
.Observed with Mojarra 4.0.2 on Adoptium Temurin JDK 17.0.6 (desktop Firefox 115.0.2 on Windows 10).