Every project example I've seen so far, in a book or a tutorial, have got the XHTML (Facelets) pages on the same level as WEB-INF directory. I've read also that in order to have the pages not direct accessible on the server, you need to hide them under the WEB-INF directory, that means that one need some kind of view resolver for that. My question is, how can I do that?
I think you misunderstood the purpose of the XHTML files which are placed in /WEB-INF
. These are the include files, master templates and tag files, exactly those pages which you don't want the end user to be able to open standalone. The normal pages and template clients are not placed in /WEB-INF
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With