commit | 8181857e0cf50728cac681cbcfa24cbce2167374 | [log] [tgz] |
---|---|---|
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Jul 04 18:31:38 2020 +0200 |
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | Sat Jul 04 18:35:29 2020 +0200 |
tree | 64a6613d687a76c8dad92462beedb33cab10a0a3 | |
parent | 45a0c497212279349243b63d6693a6aa78605ead [diff] |
Rely on BeanManager to determine whether @FlowScoped is passivating. Changes FlowScopeBeanHolder not to assume that @FlowScoped is a passivating scope and to ask the BeanManager instead. This enables @FlowScoped to work on Quarkus, which does not have passivating scopes.
Apache's implementation of the JavaServer Faces (JSF) and Jakarta Faces specification
Master / 2.3-next equals the JSF 2.3 API but delegates @ManagedBeans to CDI. The implementation of the old FacesEL (javax.faces.el.*) has been completely removed. It will be the base of the upcoming JSF 4.0.
The upcoming Jakarta Faces 3.0. It's equals to JSF 2.3 but with “jakarta.faces” packages and constants instead of “javax.faces”.
JavaServer Faces 2.3 implementation
Servlet 4.0 will enable JSF to serve resources via HTTP/2 push.
mvn clean install
```xml <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-api</artifactId> <version>2.3-next-M1</version> </dependency> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-impl</artifactId> <version>2.3-next-M1</version> </dependency> ```
```xml <servlet> <servlet-name>facesServlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>facesServlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> ```
```xml <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:p="http://primefaces.org/ui"> <h:head> </h:head> <h:body> Hello World! </h:body> </html> ```
Since 2.3-next a Quarkus extension is available. A sample project can be found here: https://github.com/apache/myfaces/blob/master/extensions/quarkus/showcase/