quarkus:JSF 的扩展与否 [英] quarkus: extension or not for JSF
问题描述
我想将 JSF 添加到 Quarkus 中.
I would like to add JSF into Quarkus.
我已经包含了 servlet-api (quarkus-undertow
).
I already included the servlet-api (quarkus-undertow
).
我的问题是:
我需要一个合适的扩展吗(例如,https://github.com/tandraschko/quarkus-myfaces) 或者仅放置 JSF-Mojarra
-library (https://javaserverfaces.github.io/) 在 pom.xml
中?
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>
如果我需要一个 JSF 扩展来在 quarkus 中工作,有没有我可以使用的官方 quarkus-jsf
-extension?
If I need an extension for JSF to work in quarkus, is there any official quarkus-jsf
-extension I can use?
在 Quarkus 中仅使用纯 JSF-Mojarra
库时有什么注意事项吗?
Are there any caveats when using only the pure JSF-Mojarra
-library in Quarkus?
推荐答案
你需要我的 quarkus-myfaces 扩展 (https://github.com/tandraschko/quarkus-myfaces) 使其运行.
You need my quarkus-myfaces extension (https://github.com/tandraschko/quarkus-myfaces) to get it running.
Quarkus 需要一个扩展,例如自定义 CDI 范围(如 JSF 中的 ViewScoped),因此如果没有 Quarkus 上的扩展,JSF 将无法工作.
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 没有可用的 mojarra 扩展.
AFAIK there is no mojarra extension available.
更新:我将我的个人"扩展移至 MyFaces Core,我们已经准备好 2.3-next-M1 版本.
展示在这里可用并且已经使用了发布版本:https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase
UPDATE:
I moved my 'personal' extension to MyFaces Core and we already have an 2.3-next-M1 release ready.
The showcase is available here and already uses the released version: https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase
这篇关于quarkus:JSF 的扩展与否的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!