Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4643

OmniFaces converters not found using CDI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 4.0.1
    • None
    • General
    • None

    Description

      As I wrote in the OmniFaces GitHub repository:

      When upgrading from OmniFaces 4.1 to 4.2/4.3 in our application (WildFly 30, MyFaces 4.0.1), we get the following errors due to the change to the bean-discovery-mode discussed in the linked GitHub issue:

      jakarta.faces.FacesException: Could not find any registered converter-class by converterId : omnifaces.SelectItemsConverter 

      It especially happens when using the following context-param:

      <context-param>
          <param-name>org.apache.myfaces.annotation.USE_CDI_FOR_ANNOTATION_SCANNING</param-name>
          <param-value>true</param-value>
      </context-param> 

      But in our application it even happens without it. Reproducer using primefaces-test is attached. Run it using mvn clean jetty:run -Pmyfaces40 and the exception appears.

      I would have thought that it would be an OmniFaces issue, but melloware thinks it's a MyFaces issue.

       

      Attachments

        1. primefaces-test.zip
          9 kB
          Manuel K
        2. image-2023-11-24-07-38-54-840.png
          65 kB
          Manuel K
        3. image-2023-11-24-07-37-06-948.png
          52 kB
          Manuel K

        Activity

          People

            Unassigned Unassigned
            mkomko Manuel K
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: