I have a Tapestry 4 page that allows a user to select
a number between 1 to 5
from a PropertySelection component. For each new
selection, the page is redisplayed 
with the selected number of TextFields using a For
component.
Clicking a button would compute the sum of the inputs.
This works in tapestry-4-beta-9, but not in
tapestry-4-beta-10.
With tapestry-4-beta-10, when I select a new number
from the drop down list and trigger a  rewind,
I get the following error.

java.util.ConcurrentModificationException
Stack Trace:

    *
java.util.AbstractList$Itr.checkForComodification(AbstractList.java:449)
    *
java.util.AbstractList$Itr.next(AbstractList.java:420)
    *
org.apache.tapestry.components.ForBean.findValueWithStringRepInIterator(ForBean.java:577)
    *
org.apache.tapestry.components.ForBean.findValueWithStringRep(ForBean.java:550)
    *
org.apache.tapestry.components.ForBean.getValueFromStringRep(ForBean.java:481)
    *
org.apache.tapestry.components.ForBean$ReadSourceDataIterator.next(ForBean.java:311)
    *
org.apache.tapestry.components.ForBean.renderComponent(ForBean.java:125)
    *
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
    *
org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
    *
org.apache.tapestry.form.FormSupportImpl.rewind(FormSupportImpl.java:542)
    *
org.apache.tapestry.form.Form.renderComponent(Form.java:226)
    *
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
    *
org.apache.tapestry.form.Form.rewind(Form.java:327)
    *
org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:441)
    *
org.apache.tapestry.form.Form.trigger(Form.java:338)


The above mentioned page and source code  is available
on
 http://137.132.69.134/tapestry4Demo/app

under the section "sample code and technique".

I have noticed from the change log in  Tapestry home
page, that the For component
has been changed in tapestry-4-beta-10. I have not had
time to look at the source code of 
ForBean.java in detail yet. It would be appreciated if
someone could explain when has changed
 in the For component from beta-9 to beta-10.


Thanks !
Shing

Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to