Annotation Type FacesConfig


  • @Qualifier
    @Target(TYPE)
    @Retention(RUNTIME)
    public @interface FacesConfig

    The presence of this annotation on a class deployed within an application guarantees activation of Jakarta Faces and its CDI specific features, even when /WEB-INF/faces-config.xml is absent and FacesServlet is not explicitly registered.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      FacesConfig.Version version
      Deprecated, for removal: This API element is subject to removal in a future version.
      It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.
    • Element Detail

      • version

        @Deprecated(forRemoval=true,
                    since="4.0")
        FacesConfig.Version version
        Deprecated, for removal: This API element is subject to removal in a future version.
        It has no effect anymore as per Jakarta Faces version 4.0; the actual impl version should be leading.

        The value of this attribute indicates that features corresponding to this version must be enabled for this application.

        Returns:
        the spec version for which the features must be enabled.
        Default:
        jakarta.faces.annotation.FacesConfig.Version.JSF_2_3