quarkus: extension or not for JSF

限于喜欢 提交于 2019-12-11 04:27:05

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!