Uploaded image for project: 'MyFaces Extensions Validator'
  1. MyFaces Extensions Validator
  2. EXTVAL-110

Allow Extval Custom Java ExtValModuleConfig objects in Bean jars (CDI)

    XMLWordPrintableJSON

Details

    Description

      OpenWebBeans initializes all classes in the archives (jars or classes directory) that have a beans.xml file.

      But since the ExtValModuleConfig classes have all the following line
      private static ExtValContext extValContext = ExtValContext.getContext();

      The ExtvalContext is initialized during startup of the WebContainer when the project extends this class (cutoms Java ExtValModuleConfig ). In the constructor of the ExtValContext class, we try to access the web.xml initialization parameter through facesContext, which is not yet available.

      solution:
      Leave the static variable empty and use a method that initializes the variable when first requested. (used by the get() and use() methods)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rdebusscher Rudy De Busscher
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: