[richfaces-issues] [JBoss JIRA] Commented: (RF-6230) Support itemValue and itemLabel for rich:comboBox

Luis Tama (JIRA) jira-events at lists.jboss.org
Sat Jul 3 01:23:46 EDT 2010


    [ https://jira.jboss.org/browse/RF-6230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12537827#action_12537827 ] 

Luis Tama commented on RF-6230:
-------------------------------

Hi guys...

rich:combobox does what it was designed to (an input text component with client-side suggestions).

If we want to use it for selecting of values based on selected labels (rendered by the component), we must wait for a new component to be designed (or design it)... or enhance it on the client-side (as I did)...

In this article I share my (working) approach:

Enhanced rich:comboBox: Values (not only Text) and RegExp Suggestions
http://community.jboss.org/docs/DOC-15534

So please test it and let me know what you think.

God bless you.

Best regards,
Luis Tama

> Support itemValue and itemLabel for rich:comboBox
> -------------------------------------------------
>
>                 Key: RF-6230
>                 URL: https://jira.jboss.org/browse/RF-6230
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>            Reporter: Felipe Jaekel
>            Assignee: Alexander Dubovsky
>
> When using a SelectItem object, only the value property is used.
> The problem is when data is populated from the database, the value property is necessary for holding the entity primary key, since the property that is used as label isn't always unique at the database, like the name property of an Employee entity for example. It has also the problem of having to write extra code to retrieve the entity. Having the ID there are already some entity converters available and when using JPA there is the EntityManager's findById method.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list