According to: https://github.com/primefaces/primefaces/issues/6030
Primefaces now has a native ClientWindow implementation.
Is there an equivalent annotation for: org.apache.deltaspike.core.api.scope.WindowScoped; ? If so, what is it ?
native ClientWindow implementation
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
Nope, there isnt as PrimeFaces doesnt maintain scopes or similar but you can use DS scope with PF ClientWindow
As you can read in your docs, ClientWindowScoped is implemented in Faces 4.0
As you can read in your docs, ClientWindowScoped is implemented in Faces 4.0
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
I have been testing out primefaces 11.0 with wildfly 25.0.0
Links break when I add DeltaSpike WindowScoped to a backing bean.
Is there some special configuration I need to apply to get these two to work well together or have I stumbled across a bug ?
Links break when I add DeltaSpike WindowScoped to a backing bean.
Is there some special configuration I need to apply to get these two to work well together or have I stumbled across a bug ?
Last edited by mores on 20 Oct 2021, 01:31, edited 1 time in total.
prime faces 7.0.11
jsf 2.3.9
tomcat 9.0.50
jsf 2.3.9
tomcat 9.0.50
Here is the code showing the issue: https://github.com/mores/primefaces/tree/addDeltaSpike
I trimmed down the showcase and added DeltaSpike....
The main page shows the url as:
links are missing the jfwid -
will throw a 500 error - but when I add back the jfwid - it works again.
I trimmed down the showcase and added DeltaSpike....
The main page shows the url as:
Code: Select all
/primefaces-showcase-11.0.0-SNAPSHOT/support.xhtml?jfwid=6f1f9&dswid=-1687
Code: Select all
/primefaces-showcase-11.0.0-SNAPSHOT/theming.xhtml?dswid=-1687
prime faces 7.0.11
jsf 2.3.9
tomcat 9.0.50
jsf 2.3.9
tomcat 9.0.50
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
did you set DeltaSpike mode to DELEGATED?
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
I tried to, here is the file I added to the showcase.
https://github.com/mores/primefaces/blo ... onfig.java
That seems to resolve links if you already have a page loaded in your broswer, but if you try to visit: primefaces-showcase-11.0.0-SNAPSHOT/
without a page - it throws an exception:
https://github.com/mores/primefaces/blo ... onfig.java
That seems to resolve links if you already have a page loaded in your broswer, but if you try to visit: primefaces-showcase-11.0.0-SNAPSHOT/
without a page - it throws an exception:
Code: Select all
14:07:18,625 ERROR [io.undertow.request] (default task-7) UT005023: Exception handling request to /primefaces-showcase-11.0.0-SNAPSHOT/: java.lang.NullPointerException
at com.sun.jsf-impl@2.3.14.SP04//com.sun.faces.context.flash.ELFlash.loggingGetPhaseMapForWriting(ELFlash.java:864)
at com.sun.jsf-impl@2.3.14.SP04//com.sun.faces.context.flash.ELFlash.setKeepMessages(ELFlash.java:333)
at deployment.primefaces-showcase-11.0.0-SNAPSHOT.war//org.apache.deltaspike.jsf.impl.util.JsfUtils.saveFacesMessages(JsfUtils.java:295)
at deployment.primefaces-showcase-11.0.0-SNAPSHOT.war//org.apache.deltaspike.jsf.impl.listener.request.DeltaSpikeExternalContextWrapper.redirect(DeltaSpikeExternalContextWrapper.java:51)
at javax.faces.api@3.0.0.SP04//javax.faces.context.ExternalContextWrapper.redirect(ExternalContextWrapper.java:597)
at deployment.primefaces-showcase-11.0.0-SNAPSHOT.war//org.primefaces.clientwindow.PrimeClientWindow.decode(PrimeClientWindow.java:82)
at deployment.primefaces-showcase-11.0.0-SNAPSHOT.war//org.primefaces.clientwindow.PrimeClientWindowLifecycle.attachWindow(PrimeClientWindowLifecycle.java:50)
prime faces 7.0.11
jsf 2.3.9
tomcat 9.0.50
jsf 2.3.9
tomcat 9.0.50
-
- PrimeFaces Core Developer
- Posts: 3979
- Joined: 03 Dec 2010, 14:11
- Location: Bavaria, DE
- Contact:
hmm, yep
dont know if either DS or PF can fix it but try to set false here in the config by specializing it: https://github.com/apache/deltaspike/bl ... g.java#L63
dont know if either DS or PF can fix it but try to set false here in the config by specializing it: https://github.com/apache/deltaspike/bl ... g.java#L63
Thomas Andraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
PrimeFaces | PrimeFaces Extensions
Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE
Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko
I added: https://github.com/mores/primefaces/blo ... onfig.java
And that seems to have fixed it.
Thanks for your help.
And that seems to have fixed it.
Thanks for your help.
prime faces 7.0.11
jsf 2.3.9
tomcat 9.0.50
jsf 2.3.9
tomcat 9.0.50
-
- Information
-
Who is online
Users browsing this forum: Google [Bot] and 48 guests