Hello experts,
I have a DropdownListBox and I want to put an event on a DropdownListBox.
How could I do that ? I use setOnSelect but it does not work.
By change item from the list no event is increased.
I have the following code:
DropdownListBox list = new DropdownListBox("list");
list.addItem("00","xx");
list.addItem("11","yy");
list.setOnSelect("list_Select");
myForm.addComponent(list);
public void list_Select (Event event) throws PageException {
DropdownListBox list = (DropdownListBox)this.getComponentByName("list");
String t = list.getSelection();
}
Thanks
Raissa