Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#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:


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 15 years ago by Douglas Hays

Owner: changed from bill to [email protected]

comment:2 Changed 15 years ago by haysmark

Owner: changed from [email protected] to haysmark

comment:3 Changed 15 years ago by Douglas Hays

Milestone: 0.9M2
Resolution: worksforme
Status: newclosed

Only Select has hidden values in 0.9. The PA value is returned using test_Select.html.

comment:4 Changed 15 years ago by (none)

Milestone: 0.9M2

Milestone 0.9M2 deleted

Note: See TracTickets for help on using tickets.