Skip to Content
0
Feb 27, 2006 at 10:04 PM

DropdownListBox

25 Views

When trying to get the text value of my DropdownListBox using the key, it returns null. I can out the key value fine. Look at my code.

DropdownListBox lb = (DropdownListBox).getComponentByName("Roles");

key = lb.getSelection();

String keyText = lb.getTextForKey(key);

response.write(keyText);