[Java] How to check the JSF version

less than 1 minute read

Please let me know if you know how to check easily

Method 1. Check with the FacesContext class

  1. Find the class that imports the FacesContext class
    1. $ grep -iIr import | grep FacesContext
  2. Choose a class that is easy to debug and set a breakpoint
  3. Debug
  4. When you come to a breakpoint, check the version with the following results on the [Expression] tab of Eclipse.
    1. FacesContext.class.getPackage().getImplementationVersion();
    2. FacesContext.class.getPackage().getImplementationTitle();

image.png

Method 2. View MANIFEST.MF

Try to open /META-INF/MANIFEST.MF

Method 3. Look at pom.xml

For Maven projects

    <dependency>
      <groupId>org.glassfish</groupId>
      <artifactId>javax.faces</artifactId>
      <version>2.3.9</version>
      <scope>provided</scope>
    </dependency>

Reference

Tags: ,

Updated: