RichFaces-Fast-JSF

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
m
m
Line 17: Line 17:
  
 
=== Switching the Fast JSF mode on and off ===
 
=== Switching the Fast JSF mode on and off ===
Fast JSF mode can be turned on globally or for particular context by setting <code>fast-jsf</code> flag to <code>true</code> in <code>$RESIN-HOME/conf/resin.xml</code> or <code>my-app/WEB-INF/resin-web.xml</code>.
+
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''. In Resin 3.2 fast-jsf mode is turned on by default.
 +
 
 +
Example of ''$my-app/WEB-INF/resin-web.xml'' that turns fast JSF mode on
  
 
<code>
 
<code>
 +
<web-app xmlns='http://caucho.com/ns/resin'>
 +
  <jsf fast-jsf='true'/>
 +
</web-app>
 
</code>
 
</code>
  
 +
===
 
=== Ajax4JSF ===
 
=== Ajax4JSF ===
  
  
 
=== RichFaces ===
 
=== RichFaces ===

Revision as of 17:09, 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. In Resin 3.2 fast-jsf mode is turned on by default.

Example of $my-app/WEB-INF/resin-web.xml that turns fast JSF mode on

<web-app xmlns='http://caucho.com/ns/resin'>

 <jsf fast-jsf='true'/>

</web-app>

=

Ajax4JSF

RichFaces

Personal tools