【问题标题】:Can't get PrettyFaces running with Quarkus & PrimefacesQuarkus 和 Primefaces 无法让 PrettyFaces 运行
【发布时间】:2021-05-16 09:30:38
【问题描述】:

我正在根据这个 repo https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase 试验 Quarkus + Myfaces/Primefaces。

我在这里尝试包含 Prettyfaces 以获得更好的 URL。更具体地说,我正在尝试按照本指南使用 OCPSOFT Rewrite https://github.com/ocpsoft/rewrite/blob/master/documentation/src/main/asciidoc/configuration/annotations/index.asciidoc 使用注解。

在我看来,在使用注释时,我只需要在 pom 中添加依赖项并像这样注释页面:@Join(path="/welcome", to="/demo/index.xhtml") 。我都做了,可以看看

“RewritePhaseListener 启动”

在控制台中,但 URL /welcome 不起作用。有人在 Quarkus 中有 Rewrite 的工作示例吗?

【问题讨论】:

  • 这是本地模式还是JVM模式? “不工作”是什么意思? 404错误?
  • JVM,它已经不能在开发模式下工作。而“不起作用”只是意味着localhost:8080/welcome 不可用...

标签: jsf primefaces quarkus prettyfaces


【解决方案1】:

我认为如果没有特殊的 quarkus 模块,Rewrite 不会开箱即用。

【讨论】:

  • 你可能是对的,如果有人解决了这个问题,我只是好奇。
  • 我会向 Rewrite URL 团队提交问题。
猜你喜欢
  • 2013-12-27
  • 2013-07-26
  • 2012-06-06
  • 2017-11-30
  • 1970-01-01
  • 2014-07-31
  • 1970-01-01
  • 2016-05-06
  • 2019-02-18
相关资源
最近更新 更多