问题
I would like to add JSF into Quarkus.
I already included the servlet-api (quarkus-undertow
).
My question is:
Do I need an appropriate extension (e.g., https://github.com/tandraschko/quarkus-myfaces) or is it enough to put only the the JSF-Mojarra
-library (https://javaserverfaces.github.io/) in pom.xml
?
<!-- run jsf in quarkus -->
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-undertow</artifactId>
</dependency>
<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.faces</artifactId>
<version>2.4.0</version>
</dependency>
If I need an extension for JSF to work in quarkus, is there any official quarkus-jsf
-extension I can use?
Are there any caveats when using only the pure JSF-Mojarra
-library in Quarkus?
回答1:
You need my quarkus-myfaces extension (https://github.com/tandraschko/quarkus-myfaces) to get it running.
Quarkus requires a extensions for example for custom CDI scopes (like ViewScoped in JSF), therefore JSF won't work without a extension on Quarkus.
AFAIK there is no mojarra extension available.
来源:https://stackoverflow.com/questions/59079402/quarkus-extension-or-not-for-jsf