You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2007/06/12 19:33:16 UTC
[Myfaces Wiki] Update of "Facelets with Trinidad" by AdamWiner
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by AdamWiner:
http://wiki.apache.org/myfaces/Facelets_with_Trinidad
------------------------------------------------------------------------------
<param-value>.xhtml</param-value>
</context-param>
}}}
+
+ Alternatively, if you want to use both JSPs and Facelets in the same
+ project, use facelets.VIEW_MAPPINGS:
+
+ {{{
+ <!-- FaceletViewHandler configuration -->
+ <context-param>
+ <param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name>
+ <param-value>com.sun.facelets.FaceletViewHandler</param-value>
+ </context-param>
+
+ <!-- Use documents saved as *.xhtml for Facelets -->
+ <context-param>
+ <param-name>facelets.VIEW_MAPPINGS</param-name>
+ <param-value>*.xhtml</param-value>
+ </context-param>
+ }}}
+
A complete example file is listed below.