Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1495

Converters are singleton on class instead of Id

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.1.9
    • None
    • Converters
    • None

    Description

      If multiple converters of the same class are defined, the behaviour is as is defined by the last converter defined.

      Assume:
      A class org.company.jsf.converter.CalendarConverter implements Converter.
      Supports a field pattern of type java.lang.String

      faces-config defines several converter-id's using the same class passing different patterns. This way a single converter ID can be used to indicate how a calendar field should be displayed. The alternative would be to either create different subclasses, or, create tag(s), or, pass f:attribute with each field.

      Attachments

        Activity

          People

            Unassigned Unassigned
            david tarr David Tarr
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: