This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

combo.getSelectedItem problem

miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i populate this combo from database and wrote some code that prints the selected object's id
i've this button that deletes the selected item; what happens is that, when i delete several items, suddenly my printlines show repeated ids, say 3 or 4 lines with the very same info and only from one single click.
this is problem one; my second problem is that i cant retrieve my last item, because when there's only one left it doesnt print at all, like it wasnt never selected
my relevant code (i tried action event and item event):

what am i doing wrong?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic