RE: java.util.ConcurrentModificationException

2006-03-20 Thread James Carman
47 AM To: Tapestry users Subject: java.util.ConcurrentModificationException Hey all I keep getting this java.util.ConcurrentModificationException when I try to add rows to a table. The below code won't work, but if I remove the For loop and just add "result.add(new ConversationsPlaceHo

Re: java.util.ConcurrentModificationException

2006-03-20 Thread Adam Zimowski
te objects stored in the list, but do not change list's state while traversing the iterator. Adam On 3/20/06, Nima Boustanian <[EMAIL PROTECTED]> wrote: > Hey all > > I keep getting this java.util.ConcurrentModificationException when I try > to add rows to a table. The below

Re: java.util.ConcurrentModificationException

2006-03-20 Thread Wayland Chan
Take a look at the javadoc for ConncurrentModificationException. When you're iterating a collection, you cannot add/remove from that collection. On 3/20/06, Nima Boustanian <[EMAIL PROTECTED]> wrote: > > Hey all > > I keep getting this java.util.ConcurrentModificationEx

java.util.ConcurrentModificationException

2006-03-20 Thread Nima Boustanian
Hey all I keep getting this java.util.ConcurrentModificationException when I try to add rows to a table. The below code won't work, but if I remove the For loop and just add "result.add(new ConversationsPlaceHolderTable("test")); it will output "test" as the firs

RE: java.util.ConcurrentModificationException

2005-04-03 Thread David Leangen
ED] > Subject: Re: java.util.ConcurrentModificationException > > > Hi, > > You have a Foreach that iterates thru your collection. The remove > listener is invoked inside the Foreach. You will want to change your > loop so it operates on a clone of the data, like so: >

Re: java.util.ConcurrentModificationException

2005-04-03 Thread Viktor Szathmary
gt; Hi, Kent, > > Thanks for the reply. (Comments below) > > > > I have a table in which I use a Foreach to add rows. > > > > > > When I click on one of the buttons in the table, I am getting a > > > java.util.ConcurrentModificationException (full stack trace

RE: java.util.ConcurrentModificationException

2005-04-03 Thread David Leangen
Hi, Kent, Thanks for the reply. (Comments below) > > I have a table in which I use a Foreach to add rows. > > > > When I click on one of the buttons in the table, I am getting a > > java.util.ConcurrentModificationException (full stack trace below). > > The collect

Re: java.util.ConcurrentModificationException

2005-04-03 Thread Kent Tong
David Leangen canada.com> writes: > > I have a table in which I use a Foreach to add rows. > > When I click on one of the buttons in the table, I am getting a > java.util.ConcurrentModificationException (full stack trace below). The collection is being modified while an ite

java.util.ConcurrentModificationException

2005-04-02 Thread David Leangen
I have a table in which I use a Foreach to add rows. When I click on one of the buttons in the table, I am getting a java.util.ConcurrentModificationException (full stack trace below). Any ideas why this would happen? Thanks! Dave Stack Trace: * java.util.AbstractList