Skip to main content

JSF Tip #51 - Determine what version of Mojarra you are running

Posted by mriem on December 4, 2013 at 3:12 AM PST

If you have ever wondered which version of Mojarra is running on the container you can determine what version is running using a simple piece of code. How?

The following code snippet shows you how!

  FacesContext.getCurrentInstance().getClass().getPackage().getImplementationVersion()

And that is it.

Enjoy!

Related Topics >>