我想将 JSF 添加到 Quarkus 中。
我已经包含了 servlet-api ( quarkus-undertow)。
我的问题是:
我是否需要适当的扩展名(例如,https : //github.com/tandraschko/quarkus-myfaces)还是仅将JSF-Mojarra-library(https://javaserverfaces.github.io/)放入就足够了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>
Run Code Online (Sandbox Code Playgroud)
如果我需要一个 JSF 扩展来在 quarkus 中工作,我可以使用任何官方的 quarkus-jsf-extension 吗?
JSF-Mojarra在 Quarkus 中仅使用纯库时有什么注意事项吗?
您需要我的 quarkus-myfaces 扩展 ( https://github.com/tandraschko/quarkus-myfaces ) 才能运行它。
Quarkus 需要一个扩展,例如自定义 CDI 范围(如 JSF 中的 ViewScoped),因此如果没有 Quarkus 上的扩展,JSF 将无法工作。
AFAIK 没有可用的 mojarra 扩展。
更新:我将我的“个人”扩展移至 MyFaces Core,我们已经准备好了 2.3-next-M1 版本。
展示在这里可用并且已经使用了发布版本:https : //github.com/apache/myfaces/tree/master/extensions/quarkus/showcase
| 归档时间: |
|
| 查看次数: |
1029 次 |
| 最近记录: |