You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2013/09/15 00:29:52 UTC

[jira] [Commented] (MYFACES-3766) javax.faces.model.SelectItem should implement equals and hashCode

    [ https://issues.apache.org/jira/browse/MYFACES-3766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13767605#comment-13767605 ] 

Leonardo Uribe commented on MYFACES-3766:
-----------------------------------------

JSF spec don't say anything about that. I don't think we can do something at this level, but I'm not sure about this one, because SelectItem is an abstraction that works as a "bridge" between the component and the model, so in that sense it should have some obvious limitations.
                
> javax.faces.model.SelectItem should implement equals and hashCode
> -----------------------------------------------------------------
>
>                 Key: MYFACES-3766
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3766
>             Project: MyFaces Core
>          Issue Type: Wish
>    Affects Versions: 2.1.12
>            Reporter: Norman Lynch
>            Priority: Minor
>
> Adding SelectItem objects to a Set (instead of a List) does NOT remove duplicate items.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira