RichFaces-Fast-JSF
From Resin 3.0
(Difference between revisions)
m |
m |
||
Line 2: | Line 2: | ||
=== Fast JSF === | === Fast JSF === | ||
− | Resin allows running your JSF applications in fast jsf mode. Fast JSF mode is applied to JSP code generator making it bypass JSP tags and use the component classes directly to construct component tree defined in the JSP flie. To enable fast JSF mode for a particular library Resin needs to know which components the tags bind to. For example, in a standard JSF library a <code>h:message</code> component would bind to <code>javax.faces.component.html.HtmlMessage</code>and Resin knows it from the following binding included in Resin's distribution. | + | Resin allows running your JSF applications in fast jsf mode. Fast JSF mode is applied to JSP code generator making it bypass JSP tags and use the component classes directly to construct component tree defined in the JSP flie. To enable fast JSF mode for a particular library Resin needs to know which components the tags bind to. For example, in a standard JSF library a <code>h:message</code> component would bind to <code>"'"javax.faces.component.html.HtmlMessage"'"</code> and Resin knows it from the following binding included in Resin's distribution. |
<code><pre> | <code><pre> |
Revision as of 17:02, 26 June 2008
Contents |
Running RichFaces and Ajax4JSF applications in fast-jsf mode
Fast JSF
Resin allows running your JSF applications in fast jsf mode. Fast JSF mode is applied to JSP code generator making it bypass JSP tags and use the component classes directly to construct component tree defined in the JSP flie. To enable fast JSF mode for a particular library Resin needs to know which components the tags bind to. For example, in a standard JSF library a h:message
component would bind to "'"javax.faces.component.html.HtmlMessage"'"
and Resin knows it from the following binding included in Resin's distribution.
<jsf-taglib xmlns="http://caucho.com/ns/resin">
<uri>http://java.sun.com/jsf/html</uri>
...
<jsf-tag>
<name>messages</name>
<component-class>javax.faces.component.html.HtmlMessages</component-class>
</jsf-tag>
...
</jsf-tablib>
Switching the Fast JSF mode on and off
Fast JSF mode can be turned on globally or for particular context by setting fast-jsf
flag to true
in $RESIN-HOME/conf/resin.xml
or my-app/WEB-INF/resin-web.xml
.