Primefaces 6.2 and Wildfly13+

UI Components for JSF
mtrinidad
Posts: 10
Joined: 24 Sep 2014, 04:13

17 Oct 2018, 22:05

Is Primefaces 6.2 full compatible with Wildfly13+ ?

I'm getting errors for read properties values at the client side

Thanks

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

18 Oct 2018, 04:42

Using on WF13 (using PF using 6.2.9)

These are the issues I know about:

@Named
@Stateful
@ViewScoped
For Controllers

Progress bar does not "progress"
15:27:03,439 ERROR [org.jboss.as.ejb3.invocation] (default task-1) WFLYEJB0034: EJB Invocation failed on component StaffMembersAdminController for method public java.lang.Integer xxx.controller.StaffMembersAdminController.getProgress(): javax.ejb.ConcurrentAccessTimeoutException: WFLYEJB0228: EJB 3.1 FR 4.3.14.1 concurrent access timeout on StaffMembersxxxxController - could not obtain lock within 5000 MILLISECONDS
at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:95)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)

Outputting csv from Table does not honour the override for the column header (works for PDF, XML and Excel)
<p:column exportHeaderValue="#{messages.staff_member_you_lend_confirmed_date}"

But other than these it seems to work fine.
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

18 Oct 2018, 09:25

@Tony:

What do you mean by
These are the issues I know about:

@Named
@Stateful
@ViewScoped
For Controllers

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

18 Oct 2018, 20:28

Sorry just stating how I annotate my Controllers.
There is not a problem there..
There are many ways to annotate controllers.
I write business appplications; so they generally require statefullness
;)
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

19 Oct 2018, 13:06

@Tony I think the issue is that @Stateful beans can only be accessed by 1 thread at a time. So your @ViewScoped bean depending on how ildfly Weld works may be being accessed by two separate thread and being "locked".

In Wildfly 13 if you want transactions in CDI beans I don't think you need the @Stateful annotation. You can just add @Transactional instead of @Stateful.

https://stackoverflow.com/questions/364 ... n-rollback
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

21 Oct 2018, 03:47

Great Thankyou.

Swapping @Stateful for @Transactional worked...

Storing the filter values between "updates" was solved here:
https://stackoverflow.com/questions/394 ... -datatable
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

21 Oct 2018, 17:35

Nice! Thanks for posting back.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

tony.herstell
Posts: 214
Joined: 29 Nov 2011, 00:40

21 Oct 2018, 22:59

Its the good thing about standards...
So many to choose from.
PF12+, Quarkus 3.2+ (CDI, JPA etc.), JSF Bridge (MyFaces 4.0.1)
Dont forget the classifier:

Code: Select all

   ...primefaces
  <classifier>jakarta</classifier>
     ... theme
  <classifier>jakarta</classifier>

erickdeoliveiraleal
Posts: 79
Joined: 25 Mar 2013, 13:00

24 Oct 2018, 16:29

Wildfly 13 with EE8 mode enabled or Wildfly 14 uses Mojarra 2.3.3, which have a serious bug unfixed until now: https://github.com/eclipse-ee4j/mojarra/issues/4488
https://github.com/primefaces/primefaces/issues/3859

This bug affects many PrimeFaces components, I switched back to WildFly 13 (EE8 mode disabled).

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

24 Oct 2018, 16:34

NOTE that this was also a bug in PrimeFaces: https://github.com/primefaces/primefaces/issues/4122
Not sure if anything else is broken.
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests