Getting RichFaces version in runtime

Did you ever need to know or display RichFaces version or revision when running your application? It’s rather easy to do. RichFaces registers VersionBean bean under a4j name which can give you that information.


   
   
   
   
   
   

Output:

Project name: 	Jboss Richfaces
Vendor: 	richfaces.org
Version: 	v.3.3.1.GA SVN $Revision: 14228 $ $Date: 2009-05-14 09:56:51 -0700 (Thu, 14 May 2009) $

You can also just render #{a4j}, then you will get:

Jboss Richfaces by richfaces.org, version v.3.3.1.GA SVN $Revision: 14228 $ $Date: 2009-05-14 09:56:51
-0700 (Thu, 14 May 2009) $

Enjoy the weekend!

One response to “Getting RichFaces version in runtime”

  1. […] The project even comes with a very short custom skin (laguna14). Look for the skin file in JavaSource folder. The application also uses a4j:insert tag and a4j implicit object. […]

Leave a comment