2009/04/10

Glassfish+JSF 1.2+Facelets+RichFaces

Avoid java.lang.NoClassDefFoundError error

RichFaces has a "non documented" dependence of several apache commons libraries.
    Apache commons
  • commons collections (commons-collections-3.x.jar)

  • commons beanutils (commons-beanutils.jar)

  • commons digester (commons-digester-1.x.jar)

  • commons logging (commons-logging-1.x.jar, commons-logging-adapters-1.x.jar, commons-logging-api-1.x.jar)


ViewExpiredExceptions when using RichFaces with JSF 1.2
Don't even follow the link in RichFaces Developer Guide.

just add this to your web.xml
        

 <context-param>
<param-name>facelets.BUILD_BEFORE_RESTORE</param-name>
<param-value>true</param-value>
</context-param>