Access JSF and Primefaces version numbers programmatically

后端 未结 4 465
不知归路
不知归路 2021-01-03 00:52

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

4条回答
  •  渐次进展
    2021-01-03 01:38

    For PrimeFaces, you can use the Constants class:

    org.primefaces.util.Constants.VERSION
    

提交回复
热议问题