I use PrimeFaces 3.5.x and Mojarra JSF 2.1.x I would like to access and show the versions of both libraries programmatically.
I use the versions as maven2 properties
For PrimeFaces, you can use the Constants class:
org.primefaces.util.Constants.VERSION