Open chkal opened 7 years ago
Comment by arjan tijms:
Note that Facelets can also be activated by putting an empty faces-config.xml
in WEB-INF or by having a class annotated with @ManagedBean
(or other JSF specific annotations). Of course those annotations would create a JSF artefact, which would be useless in an MVC application.
Original issue MVC_SPEC-68 created by lefloh:
The spec states in ch 7.3:
{quote} Because Facelets support is not enabled by default, MVC applications that use Facelets are required to package a web.xml deployment descriptor with the following entry mapping the extension *.xhtml as shown next: {quote}
<JAVASERVERFACESSPEC_PUBLIC-1416>(https://java.net/jira/browse/JAVASERVERFACES_SPECPUBLIC-1416) proposes to introduce a annotation/class based configuration via
@FacesConfig
.MVC should also use (prefer) this way if this will be available.
Reference: Discussion on the(https://java.net/projects/mvc-spec/lists/users/archive/2016-07/message/5)