Results 1 to 3 of 3
  1. #1
    sek_see is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default IndexOutOfBoundsExeption on checkboxes

    I have the following problem with my struts application, I'll try to explain as best I can:

    My form has a collection of objects with each one displayed on screen with a checkbox. The option to remove one or several of those objects is available with a "remove" button.

    When I click the remove button, my action removes the record from the database, updates the parent object, and updates the form so it doesn't display on screen anymore.

    Everything is good so far.

    The problem is when I hit "refresh", I get an IndexOutOfBoundsException. It doesn't do it if I don't update the form bean with the new values.

    With the debugger on, all my values make sense, everything is showing the right values, but the application keeps running and crashes at ExecuteThread.run()

    Is there a way to prevent this from happening? Granted, not many users will hit refresh after deleting an entry, but the possibility is still there.

    Thank you.

  2. #2
    sek_see is offline Member
    Join Date
    May 2012
    Posts
    2
    Rep Power
    0

    Default Re: IndexOutOfBoundsExeption on checkboxes

    I found a workaround, thank you.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,244
    Rep Power
    19

    Default Re: IndexOutOfBoundsExeption on checkboxes

    Moved from Advanced Java

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. How to add Checkboxes to a JTree
    By Reptar693 in forum AWT / Swing
    Replies: 0
    Last Post: 04-03-2012, 06:51 AM
  2. Randomize checkboxes
    By ZeCute in forum AWT / Swing
    Replies: 0
    Last Post: 05-11-2011, 08:19 AM
  3. Checkboxes and MS Access DB
    By m_patten2 in forum AWT / Swing
    Replies: 2
    Last Post: 11-26-2010, 01:56 AM
  4. Java help...Checkboxes
    By university123 in forum New To Java
    Replies: 32
    Last Post: 10-25-2010, 12:39 PM
  5. Problem with checkboxes
    By carl in forum Java Applets
    Replies: 1
    Last Post: 08-06-2007, 08:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •