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.

        Activity

        Hide
        lu4242 Leonardo Uribe added a comment -

        This is a problem related to jsf itself. The model used for convert values only allows one converter per component. An issue against javaserverfaces spec public should be raised.

        Show
        lu4242 Leonardo Uribe added a comment - This is a problem related to jsf itself. The model used for convert values only allows one converter per component. An issue against javaserverfaces spec public should be raised.

          People

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

            Dates

            • Created:
              Updated:

              Development