commit | 2fa694a96f8c734a15ab4a46ad87ac52b1101b2a | [log] [tgz] |
---|---|---|
author | Volodymyr Siedlecki <volosied@gmail.com> | Fri Apr 26 15:37:49 2024 -0400 |
committer | GitHub <noreply@github.com> | Fri Apr 26 15:37:49 2024 -0400 |
tree | 7ae0a1a78bfeeccafb2273367d737928e2ce137d | |
parent | 877442ad2aca038a1ff9a706f01352b9cdb27813 [diff] | |
parent | 54058bbe4c7ed03869745e0fe3a6e7538ab8c5f2 [diff] |
Merge pull request #709 from volosied/main-updates Apply MYFACES-4662 & MYFACES-4664 to 5.0
Apache's implementation of the JavaServer Faces (JSF) and Jakarta Faces specification
Jakarta Faces 5.0 implementation
Jakarta Faces 4.1 implementation
Jakarta Faces 4.0 implementation
Based on the refactored 2.3-next codebase
(Almost) JavaServer Faces 2.3 implementation
Completely refactored codebase compared to 2.3, also providing a Quarkus extension
2.3-next equals the JSF 2.3 API but delegates @ManagedBeans to CDI; ManagedBeans configured via XML are completely ignored. The implementation of the old FacesEL (javax.faces.el.*) also has been completely removed.
JavaServer Faces 2.3 implementation
mvn clean install
<dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-api</artifactId> <version>5.0.0-SNAPSHOT</version> </dependency> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-impl</artifactId> <version>5.0.0-SNAPSHOT</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_5_0.xsd" version="5.0"> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>jakarta.faces.webapp.FacesServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xhtml</url-pattern> </servlet-mapping> </web-app>
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="jakarta.faces.core" xmlns:h="jakarta.faces.html"> <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/main/extensions/quarkus/showcase/
Uber-JARs are not supported by design