Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3053 Improve error reporting and logging
  3. MYFACES-3076

Improve error reporting and logging: report duplicate converters, validators, etc.

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3-next-M1
    • General
    • None

    Description

      One of the problems from category: http://www.mail-archive.com/dev@myfaces.apache.org/msg50721.html

      Situation: if user creates (mostly by mistake) two converters for same type:

      @FacesConverter(forClass=AEntity.class)
      public class ConverterOne {}

      @FacesConverter(forClass=AEntity.class)
      public class ConverterTwo {}

      myfaces don't say nothing, moreover random behaviour occurs, because HashMap<String,Converter> and together with classloading in ConverterOne or ConverterTwo is used randomly.

      This obviously can afftect @FacesValidator etc.

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            markoc50 Martin Kočí
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: