commit | 6c5845cf18a5c87a8a4436d0fca1c21d16f2dd93 | [log] [tgz] |
---|---|---|
author | Thomas Andraschko <tandraschko@apache.org> | Mon Mar 02 10:09:36 2020 +0100 |
committer | GitHub <noreply@github.com> | Mon Mar 02 10:09:36 2020 +0100 |
tree | 4975df2957267cc71577c9672c006e4f6f6a7354 | |
parent | 0f083ab69d6a13cde1776efc6eac374a8b1bac67 [diff] | |
parent | 19b5df4390ea87b43bfdcd4363d35246a47ca56c [diff] |
Merge pull request #88 from rmpestano/native Quarkus native mode support
Apache's implementation of the JavaServer Faces specification
Servlet 4.0 will enable JSF 2.3 to serve resources via HTTP/2 push.
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.
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/