-
1. Re: Rich Combo box shows only values and not labels.
rafik7777 Apr 14, 2008 5:49 AM (in response to ramprasadhtv)I have the same problem.
-
2. Re: Rich Combo box shows only values and not labels.
ilya_shaikovsky Apr 14, 2008 7:02 AM (in response to ramprasadhtv)comboBox component from the beggining designed as input with client side suggestions (light version of suggestionBox) not as select component. So in order to use objects instead of just strings you should use converters.
-
3. Re: Rich Combo box shows only values and not labels.
ramprasadhtv Apr 14, 2008 8:14 AM (in response to ramprasadhtv)Thank you very much for the reply.
Fundamentally, when we display values to users, we need to do the translation and display to the users. When the user selects one from the client side suggestions, it cannot be used as such since it’s a translated value and we need to use the actual value in any of the operation.
As you mentioned, one has to use converters, but if I use converters, then I need to maintain a sort of Map with the translation to the actual object. When the user picks or selects one value in the combo, then based on the user selection(translated value), I need to get the Object. We need to have as many maps in as many places where we use Combo box. This I think will not be an elegant solution
PL correct me if I am missing something
Can you please let me know whether this request can be taken up. -
4. Re: Rich Combo box shows only values and not labels.
lucab Apr 16, 2008 8:26 AM (in response to ramprasadhtv)we have the same problem! why they didn't make a NORMAL html select??? Are there other solutions than using converters? Or we are stick with using h:selectOneMenu???
-
5. Re: Rich Combo box shows only values and not labels.
ilya_shaikovsky Apr 16, 2008 9:35 AM (in response to ramprasadhtv)I could tell you the same one more time. Combo Box was designed as suggestions able Input. It isn't a select. So we can't aggree that lost feature present there
-
6. Re: Rich Combo box shows only values and not labels.
demetrio812 Apr 16, 2008 12:34 PM (in response to ramprasadhtv)too bad...I thought I could use to have a css customizable select (as I can't customize standard selects, do you know a way?)...
Selecting just text reduces a lot the using possibilities of this component...
Demetrio Filocamo -
7. Re: Rich Combo box shows only values and not labels.
ilya_shaikovsky Apr 16, 2008 12:57 PM (in response to ramprasadhtv)check our standart components skinning article. Unfortunatelly now it doesn't covers all the functionality currently added but will be usefull fro you working with selects:
http://livedemo.exadel.com/richfaces-demo/richfaces/standardSkinning.jsf -
8. Re: Rich Combo box shows only values and not labels.
jgilbert Apr 16, 2008 4:02 PM (in response to ramprasadhtv)I understand that the rich:comboBox works as designed. So, I want to look into making a variation that supports both values and labels.
Before I go down that path, are there any known limitations that would make this difficult? -
9. Re: Rich Combo box shows only values and not labels.
stefan.mohr Apr 25, 2008 9:50 PM (in response to ramprasadhtv)I see how the rich:comboBox works now and I have it working well enough, but I'm curious why it was implemented as an input instead of a select.
Can someone name an example or two where it is useful in this way? The component demo only uses it in a select type of context so I'm having trouble seeing the benefits of it being designed that way. -
10. Re: Rich Combo box shows only values and not labels.
ilya_shaikovsky Apr 28, 2008 12:13 PM (in response to ramprasadhtv)client-side autocompletion case.
-
11. Re: Rich Combo box shows only values and not labels.
luiggitama Jul 3, 2010 5:55 AM (in response to ramprasadhtv)Here is a client-side (JavaScript) customization of rich:comboBox, to make it support values as well as labels:
Enhanced rich:comboBox: Values (not only Text) and RegExp Suggestions
God bless you.
Best regards,
Luis Tama