-
1. Re: rich:comboBox - how to bind value item and label item
fkj Feb 16, 2009 7:59 AM (in response to jamon)Seems that rich:comboBox doesn't support item value. I got it working binding a List to it.
RichFaces team: usually when a selectMenu is created from some database data, the item value is set with the ID from the entity. So having only the label property is bad, because sometimes it's not a unique value at the database. -
2. Re: rich:comboBox - how to bind value item and label item
fkj Feb 16, 2009 8:01 AM (in response to jamon)"FkJ" wrote:
I got it working binding a List<String> to it.
A String List. -
3. Re: rich:comboBox - how to bind value item and label item
fkj Feb 16, 2009 8:54 AM (in response to jamon)I've opened a request for feature. You can vote on it.
https://jira.jboss.org/jira/browse/RF-6230 -
4. Re: rich:comboBox - how to bind value item and label item
jamon Feb 16, 2009 9:01 AM (in response to jamon)FkJ, thank you.
I believe it's important feature for control like comboBox;
And I'm surprised that this has not yet been implemented. -
5. Re: rich:comboBox - how to bind value item and label item
jamon Feb 16, 2009 9:22 AM (in response to jamon)Can you suggest me some temporary resolve for this issue (while issue have not resolved by developers)?
-
6. Re: rich:comboBox - how to bind value item and label item
jamon Feb 16, 2009 11:59 AM (in response to jamon)I review forum topic on this link:
http://www.jboss.org/index.html?module=bb&op=viewtopic&t=146103&postdays=0&postorder=asc&start=0
and I can't find resolve for my problem. Many words, lose code...
If your can, please, point my look on component in Richfaces or JSF that already have this feature, or type some example code (if need aggregation of some components).
I believe, it's not hard for you:) -
7. Re: rich:comboBox - how to bind value item and label item
fkj Feb 16, 2009 12:11 PM (in response to jamon)"Jamon" wrote:
Can you suggest me some temporary resolve for this issue (while issue have not resolved by developers)?
Use it with a List of Strings, then write a query to retrieve the entity from the database by the selected value. -
8. Re: rich:comboBox - how to bind value item and label item
jamon Feb 16, 2009 12:34 PM (in response to jamon)"FkJ" wrote:
"Jamon" wrote:
Can you suggest me some temporary resolve for this issue (while issue have not resolved by developers)?
Use it with a List of Strings, then write a query to retrieve the entity from the database by the selected value.
Ok.
Note, issue for this problem (https://jira.jboss.org/jira/browse/RF-6230) have been closed with reference to topic post, what I mentioned in my last post. If I understand properly, there is some resolve this problem, but I can't find it. Can you help me?) -
9. Re: rich:comboBox - how to bind value item and label item
nbelaevski Feb 16, 2009 12:43 PM (in response to jamon)You can use rich:inplaceSelect.
-
10. Re: rich:comboBox - how to bind value item and label item
jamon Feb 17, 2009 1:27 PM (in response to jamon)"nbelaevski" wrote:
You can use rich:inplaceSelect.
Thank you!)