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

Converters are singleton on class instead of Id

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.1.9
    • Fix Version/s: None
    • Component/s: Converters
    • Labels:
      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

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

              Dates

              • Created:
                Updated: