Hi, 

In your case, why not have a try on AjaxFormLoop component, but I haven't tried 
this component yet and don't have much experience.

Loop component in form is a bit tricky. Set volatile='true' means you need have 
your source object unchanged. But you have deleted one row during process, so 
exception happens.

Thanks

DH


----- Original Message ----- 
From: "Joost Schouten (mailing lists)" <joost...@jsportal.com>
To: "Tapestry users" <users@tapestry.apache.org>
Sent: Tuesday, March 10, 2009 11:13 AM
Subject: Re: [T5.1.0.0] Loop in Form problem introduced in T5.1.0.0


Dear DH,

Thanks for you quick response. I added the param but now get a new
Exception (see below). The exception still only happens when elements
are removed from the Loop through AJAX, adding all works fine. This
whole volatile concept is a bit fuzzy to me and scanning the source of
the Loop component does not clear things up to me. Do you have any
further pointers?

Cheers,
Joost

--- the new Exception ------

Caused by: java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:427)
at org.apache.tapestry5.corelib.components.Loop.advanceVolatile(Loop.java:335)
at org.apache.tapestry5.corelib.components.Loop.access$200(Loop.java:41)
at org.apache.tapestry5.corelib.components.Loop$3.execute(Loop.java:92)
at org.apache.tapestry5.corelib.components.Loop$3.execute(Loop.java:96)
at 
org.apache.tapestry5.corelib.components.Form.executeStoredActions(Form.java:471)
... 81 more

Reply via email to