-
Notifications
You must be signed in to change notification settings - Fork 112
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
ClientWindow: Custom PrimeClientWindowFactory not being respected #5316
Comments
The spec says this: https://jakarta.ee/specifications/platform/10/apidocs/jakarta/faces/lifecycle/clientwindow
It doesn't say it should be auto-activated irrespective the context param when a custom client window factory is present. @tandraschko, what's your view on this? |
IMO for custom ClientWindow/Factory it doesnt make sense to rely on the i would suggest that the impl should always, indepedent of any config, ask ClientWindowFactory to get a ClientWindow or null. |
Sounds reasonable. I think we should adopt that behaviour for Mojarra 4.0.5, and then clarify the specification? |
Yep please 🙏 |
@melloware Please test @BalusC @arjantijms Please review |
I will test it out. |
Excellent. |
… respected (#5323) Co-authored-by: Manfred Riem <m_riem@hotmail.com>
Description
Mojarra Version: 4.0.4
Original Issue reported for 2.3.21: #5297
PrimeFaces has its own PrimeClientWindow and by overriding the client window factory like this:
This works fine in MyFaces but in Mojarra it does not pick up. To turn it on we have to enable in
web.xml
Reproducer:
Attached is a reproducer simply test it yourself with.
pf-client-window-factory.zip
mvn clean jetty:run -Pmojarra40
FAILSmvn clean jetty:run -Pmyfaces40
WORKSWhen you navigate to
http://localhost:8080/primefaces-test/
this is the result:Mojarra 4.0.4:
http://localhost:8080/primefaces-test/
MyFaces 4.0.1:
http://localhost:8080/primefaces-test/test.xhtml?jfwid=4a6b4
You can see the proper Window ID is added to the URL.
We do NOT have to add
jakarta.faces.CLIENT_WINDOW_MODE
for MyFaces as it overrides the default ClientWindowFactory with our own. It seems like in Mojarra it is still loading the default ClientWindowFactory first and then overriding with our custom one thus the need to for theweb.xml
param.PrimeFaces Issue: primefaces/primefaces#10444
PrimeFaces current PR: primefaces/primefaces#10449
Expected behavior
When I enable
PrimeClientWindow
it activates WITHOUT the need to setjakarta.faces.CLIENT_WINDOW_MODE
The text was updated successfully, but these errors were encountered: