# Possible bug in Combobox component

Light1988
3

I have a combo box in my application, whose values ​​are loaded dynamically based on the selected client. When the customer change, I change the list component bound to the new one and I change the position selected for the first. The problem is that the component index is not reloaded and an IndexOutOfBoundsException occurs. To fix it I had to restart the index of my combobox in my ViewModel as written below:

Combobox combo = (Combobox) Path.getComponent ("/ combo");
combo.setSelectedIndex (0);


Not sure if this is an error or other problem.

delete retag edit
Be the first one to reply this discussion!
[hide preview]