Including extentions 12 in PF showcase breaks ajax

Community Driven Extensions Project
Post Reply
rbetjes
Posts: 10
Joined: 24 Nov 2016, 16:34

07 Nov 2022, 14:19

Ok, here's a weird one.
While researching the impact of upgrading from PF8 to PF12 I ran into the problem that _any_ ajax functionality is broken in my project.
So to research this problem I checked out the latest PF showcase and did some testing.

To replicate the problem I include extentions 12.0.1 as dependancy to the project and then create a test.xhtml containing not much more than this:

Code: Select all

    <h:form>
		<p:inputMask value="#{basicView.text5}">
			<p:ajax listener="#{basicView.handleKeyEvent}" update="@form"/>
		</p:inputMask>
    </h:form>
The rendered html does not contain an onchange attribute as it should which breaks the ajax functionality (tested in chrome, brave and firefox).
Now here's where it gets weird, if I use extentions version 10 instead of 12 (or 11) the onchange _is_ rendered and the test works as it should.
Also, the problem occurs when I deploy the showcase war to a freshly downloaded payara 5 (Payara Server 5.2022.4 #badassfish (build 462)) but not when I run the showcase using jetty (mvn clean jetty:run -Pnon-ee,mojarra-2.3)

There are no error messages in the browser console, nor in de server logs so I am a bit lost where to start.

Thanks,

Robin

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

08 Nov 2022, 16:27

Can you create a PrimeFaces Test reproducer: https://github.com/primefaces/primefaces-test

I am using 12.0.0 and 12.0.1 in production with no issues. Not using Payara though using Jboss EAP which is also Mojarra but I know Payara does some whacky cusomtizations.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 12.0.0 / PF Extensions 12.0.1
PrimeReact 8.6.1

rbetjes
Posts: 10
Joined: 24 Nov 2016, 16:34

09 Nov 2022, 10:53

Sure: https://github.com/rbetjes/primefaces-t ... sing_PFE11
Same results though. No problem using jetty but payara deploy is broken.

Now what could be the difference between PF Extentions 10 and PF Extentions 11 that is interfering with payara?

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

09 Nov 2022, 16:12

Yep your Payara issue is this one: https://github.com/payara/Payara/issues/5674

Please go upvote it and I have a workaround in that ticket.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 12.0.0 / PF Extensions 12.0.1
PrimeReact 8.6.1

rbetjes
Posts: 10
Joined: 24 Nov 2016, 16:34

10 Nov 2022, 09:40

Done.
And workaround works. Thanks.

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest