Closed hantsy closed 10 months ago
Jakarta EE 10/Faces 4.0/Glassfish, example project: https://github.com/hantsy/jakartaee10-sandbox/tree/master/faces
Given Facelet written in pure Java:
@View("/hello-facelet.xhtml") @ApplicationScoped class HelloFacelet extends Facelet{ }
I have enabled automatic extensionless mapping in web.xml.
web.xml
When deploying to Glassfish,
mvn clean package cargo:run
open a browser to navigate http://localhost:8080/faces-examples/hello-facelet, it does not work.
http://localhost:8080/faces-examples/hello-facelet
I have to append the .xhtml in the url.
.xhtml
Jakarta EE 10/Faces 4.0/Glassfish, example project: https://github.com/hantsy/jakartaee10-sandbox/tree/master/faces
Given Facelet written in pure Java:
I have enabled automatic extensionless mapping in
web.xml
.When deploying to Glassfish,
open a browser to navigate
http://localhost:8080/faces-examples/hello-facelet
, it does not work.I have to append the
.xhtml
in the url.