PrimeFaces 13.0.0-RC1 in Maven Central

UI Components for JSF
Post Reply
Melloware
Posts: 3716
Joined: 22 Apr 2013, 15:48

25 May 2023, 23:43

Please start testing and report any bugs found with the latest release!
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

NOTiFY
Posts: 393
Joined: 25 May 2016, 22:57

04 Jun 2023, 11:58

Has 'ajax' been upgraded for PF 13 on Mojarra 4.0.0.SP01 on Jakarta Faces.

Code: Select all

<p:ajax event="tabChange" listener="..." update="..." />
PF 13.0.0--Jakarta. Jakarta Faces 4.0.1/Kotlin Multiplatform 1.9.10
Mojarra 4.0.2, OmniFaces 4.2
WildFly 29.0.1.Final 'preview' Jakarta EE 10.0.0
JDK 20.0.2, Kotlin 1.9.10, Gradle 8.3 Groovy DSL, MongoDB 7.0.0
IntelliJ IDEA 2023.2.1, macOS Ventura 13.5.1

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

04 Jun 2023, 16:48

Its working fine for me on Mojarra 4.X and PF 13.X.
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

NOTiFY
Posts: 393
Joined: 25 May 2016, 22:57

04 Jun 2023, 18:37

Code: Select all

INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Preview 28.0.1.Final (WildFly Core 20.0.2.Final) started in 2553ms - Started 304 of 546 services (322 services are lazy, passive or on-demand) - Server configuration file in use: standalone-full.xml

INFO  [org.primefaces.webapp.PostConstructApplicationEventListener] (ServerService Thread Pool -- 84) Running on PrimeFaces 13.0.0-RC1
Albeit 'works' without '<p:ajax event="tabChange" ...'

Added ...

Code: Select all

<p:ajax event="tabChange" listener="#{nOTiFYMotorcycleController.onTabChange}" update=":formNOTiFY:msgs"/>

Code: Select all

public void onTabChange(TabChangeEvent event) {
    LOGGER.info(">>>>> TabChangeEvent event = {}", event);
}
Shows no data now: "No records found."

Then ...

Code: Select all

WARNING [org.primefaces.component.api.UIData] (default task-1) Unable to automatically determine the `lazy` attribute, fallback to false. Either define the `lazy` attribute on the component or make sure the `value` attribute doesn't resolve to `null`. clientId: formNOTiFY:tabViewHome:dataTableMotorcycles
 ...
INFO  [jakarta.enterprise.resource.webcontainer.faces.context] (default task-5) jakarta.el.PropertyNotFoundException: Target Unreachable, identifier 'nOTiFYMotorcycleController' resolved to null: jakarta.el.PropertyNotFoundException: Target Unreachable, identifier 'nOTiFYMotorcycleController' resolved to null
	at or
Same old, same old :

Code: Select all

listener="#{tabbedView.onTabChange}": Target Unreachable

Code: Select all

SEVERE [jakarta.enterprise.resource.webcontainer.faces.context] (default task-1) jakarta.el.PropertyNotFoundException: /index.xhtml @37,107 listener="#{tabbedView.onTabChange}": Target Unreachable, identifier 'tabbedView' resolved to null: jakarta.el.PropertyNotFoundException: /index.xhtml @37,107 listener="#{tabbedView.onTabChange}": Target Unreachable, identifier 'tabbedView' resolved to null
PF 13.0.0--Jakarta. Jakarta Faces 4.0.1/Kotlin Multiplatform 1.9.10
Mojarra 4.0.2, OmniFaces 4.2
WildFly 29.0.1.Final 'preview' Jakarta EE 10.0.0
JDK 20.0.2, Kotlin 1.9.10, Gradle 8.3 Groovy DSL, MongoDB 7.0.0
IntelliJ IDEA 2023.2.1, macOS Ventura 13.5.1

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

05 Jun 2023, 14:24

Yep still working fine for me in Mojarra 4.x TabView changes just fine and fires Ajax `onTabChange`.
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

NOTiFY
Posts: 393
Joined: 25 May 2016, 22:57

05 Jun 2023, 14:57

Melloware wrote:
05 Jun 2023, 14:24
Yep still working fine for me in Mojarra 4.x TabView changes just fine and fires Ajax `onTabChange`.
Are you exactly using:

Code: Select all

Jakarta EE Platform 10
WildFly 28.0.1.Final
WELD 5.1.0 (Final)
Mojarra 4.0.0.SP01
JAR + WAR to EAR.

Code: Select all

INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment NOTiFYmoto.ear
The simple test is:

Code: Select all

package com.notifymoto.controller;

import jakarta.enterprise.context.RequestScoped;
import jakarta.faces.application.FacesMessage;
import jakarta.faces.context.FacesContext;
import jakarta.inject.Named;
import org.primefaces.event.TabChangeEvent;
import org.primefaces.event.TabCloseEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Named("tabbedView")
@RequestScoped
public class TabbedView {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private static final Logger LOGGER = LoggerFactory.getLogger(TabbedView.class);

    public void onTabChange(TabChangeEvent event) {
        try {
            System.out.println(">>>>> onTabChange event = " + event);
            FacesMessage msg = new FacesMessage("Tab Changed", "Active Tab: " + event.getTab().getTitle());
            LOGGER.info(">>>>> msg = {}", msg);

            FacesContext.getCurrentInstance().addMessage(null, msg);
        } catch (Exception exception) {
            System.out.println(">>>>>> TabChangeEvent event = " + exception);
        }
    }

    public void onTabClose(TabCloseEvent event) {
        FacesMessage msg = new FacesMessage("Tab Closed", "Closed tab: " + event.getTab().getTitle());
        FacesContext.getCurrentInstance().addMessage(null, msg);
    }
}
TabView changes never fires Ajax `onTabChange`!
PF 13.0.0--Jakarta. Jakarta Faces 4.0.1/Kotlin Multiplatform 1.9.10
Mojarra 4.0.2, OmniFaces 4.2
WildFly 29.0.1.Final 'preview' Jakarta EE 10.0.0
JDK 20.0.2, Kotlin 1.9.10, Gradle 8.3 Groovy DSL, MongoDB 7.0.0
IntelliJ IDEA 2023.2.1, macOS Ventura 13.5.1

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

05 Jun 2023, 15:29

Just tested.

Download this: https://github.com/primefaces/primeface ... change.zip

Unzip it and run `mvn clean jetty:run` and navigate to http://localhost:8080/primefaces-test

It is running Jakarta Mojarra 4.0.2 and you will see "tabChange" event fires just fine over and over.
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

NOTiFY
Posts: 393
Joined: 25 May 2016, 22:57

05 Jun 2023, 16:56

Melloware wrote:
05 Jun 2023, 15:29
Download this: https://github.com/primefaces/primeface ... change.zip
Unzip it and run `mvn clean jetty:run` and navigate to http://localhost:8080/primefaces-test
It is running Jakarta Mojarra 4.0.2 and you will see "tabChange" event fires just fine over and over.
I appreciate that this works 100% on Jetty.

But it won't run on WildFly 28.0.1 with Mojarra 4.0.0.SP01 as an EAR.

Code: Select all

WARNING [jakarta.enterprise.resource.webcontainer.faces.lifecycle] (default task-1) /index.xhtml @37,107 listener="#{tabbedView.onTabChange}": Target Unreachable, identifier 'tabbedView' resolved to null: jakarta.el.PropertyNotFoundException: /index.xhtml @37,107 listener="#{tabbedView.onTabChange}": Target Unreachable, identifier 'tabbedView' resolved to null
SEVERE [jakarta.enterprise.resource.webcontainer.faces.context] (default task-1) jakarta.el.PropertyNotFoundException: /index.xhtml @37,107 listener="#{tabbedView.onTabChange}": Target Unreachable, identifier 'tabbedView' resolved to null: jakarta.el.PropertyNotFoundException: /index.xhtml @37,107 listener="#{tabbedView.onTabChange}": Target Unreachable, identifier 'tabbedView' resolved to null
PF 13.0.0--Jakarta. Jakarta Faces 4.0.1/Kotlin Multiplatform 1.9.10
Mojarra 4.0.2, OmniFaces 4.2
WildFly 29.0.1.Final 'preview' Jakarta EE 10.0.0
JDK 20.0.2, Kotlin 1.9.10, Gradle 8.3 Groovy DSL, MongoDB 7.0.0
IntelliJ IDEA 2023.2.1, macOS Ventura 13.5.1

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

05 Jun 2023, 19:00

Then I would contact Jboss Wildfly support as we have proven it is not...

A) a Mojarra 4.x issue
B) a PrimeFaces 12 or 13 issue

So the only place the issue can be is either with your code or with Wildfly....

So there is no reason to post about it anymore here as we have proven over and over its NOT a PrimeFaces or Mojarra issue.
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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 15 guests