简体   繁体   中英

Can't get PrettyFaces running with Quarkus & Primefaces

I'm experimenting with Quarkus + Myfaces/Primefaces based on this repo https://github.com/apache/myfaces/tree/master/extensions/quarkus/showcase .

Here I'm trying to include Prettyfaces to get nicer URLs. More specifically I'm trying to use OCPSOFT Rewrite by following this guide https://github.com/ocpsoft/rewrite/blob/master/documentation/src/main/asciidoc/configuration/annotations/index.asciidoc by using annotation.

Seems to me that, when using annotations, I just need to add dependency into pom and annotate a page like this: @Join(path="/welcome", to="/demo/index.xhtml"). I did both, can see

"RewritePhaseListener starting up"

in console but URL /welcome is not working. Anyone having working example of Rewrite in Quarkus?

I dont think that Rewrite will just work out of the box without a special quarkus module.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM