Possible bug in Combobox component

asked 2013-05-06 16:23:32 +0800

Light1988 gravatar image Light1988

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 flag offensive retag edit
Be the first one to reply this discussion!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2013-05-06 16:23:32 +0800

Seen: 9 times

Last updated: May 06 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More