You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "David Tarr (JIRA)" <de...@myfaces.apache.org> on 2010/02/26 15:10:27 UTC
[jira] Created: (TOMAHAWK-1495) Converters are singleton on class
instead of Id
Converters are singleton on class instead of Id
-----------------------------------------------
Key: TOMAHAWK-1495
URL: https://issues.apache.org/jira/browse/TOMAHAWK-1495
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Converters
Affects Versions: 1.1.9
Reporter: David Tarr
Priority: Minor
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (TOMAHAWK-1495) Converters are singleton on class
instead of Id
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/TOMAHAWK-1495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12861496#action_12861496 ]
Leonardo Uribe commented on TOMAHAWK-1495:
------------------------------------------
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.
> Converters are singleton on class instead of Id
> -----------------------------------------------
>
> Key: TOMAHAWK-1495
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1495
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Converters
> Affects Versions: 1.1.9
> Reporter: David Tarr
> Priority: Minor
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.