View Full Version : :: Error deleting a record.

26 Jul 2009, 10:34 PM
I'm having a problem with the exclusion of records from a grid.
Happens when I delete the following error:

[ERROR] Uncaught exception escaped
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck (ArrayList.java: 547)
At java.util.ArrayList.get (ArrayList.java: 322)

Although the grid is reloaded, the error is and what happens after the line
is not executed.

Below the button code of exclusion:
ListLoader loader = new BaseListLoader (proxy, reader);
loader.load ();
store = new ListStore <BeanModel> (loader);
grid.reconfigure (store, cm);
System.out.println ( "This is not executed");

This is the method of selecting the item in the grid:

grid.getSelectionModel (). setSelectionMode (SelectionMode.SINGLE);
grid.getSelectionModel (). addListener (Events.SelectionChange, <SelectionChangedEvent> new Listener () (
public void handleEvent (SelectionChangedEvent be) (
BeanModel bm = (BeanModel) be.getSelection (). Get (0);


Itamar Nunes