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 thought on “Getting RichFaces version in runtime

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s