#2790 closed defect (worksforme)
ComboBox doesn't allow access to inlined option values
Reported by: | guest | Owned by: | haysmark |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.4.2 |
Keywords: | ComboBox Select | Cc: | [email protected]… |
Blocked By: | Blocking: |
Description
Check out the ComboBox unit test. ComboBox? #1 includes inlined option data and specifies state abbreviations for values and full state names for labels. Selecting a state like 'Pennsylvania' doesn't cause getValue() to return 'PA' like it should according to the inlined data definition.
It looks like both the 0.4.2 release and bleeding code include a setSelectedValue() to allow setting this information but doesn't give any way to retrieve it.
The Select widget's setLabel/setValue behavior looks correct, and it looks like either that should probably be pulled up into ComboBox? or a getSelectedValue() added.
There may also be issues with onValueChanged callbacks using labels and not option values. I haven't dug too far into that.
Change History (4)
comment:1 Changed 14 years ago by
Owner: | changed from bill to [email protected]… |
---|
comment:2 Changed 14 years ago by
Owner: | changed from [email protected]… to haysmark |
---|
comment:3 Changed 14 years ago by
Milestone: | → 0.9M2 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Only Select has hidden values in 0.9. The PA value is returned using test_Select.html.