Re: how to recordError against a form field in a loop

2013-02-07 Thread John
That was useful although my implementation is like this: int loopi = 0; for (TimetableEntry entry : timetableEntryFlash) { String loopex = loopi == 0 ? : (_ + (loopi - 1)); if (entry.getOnTime1() == null entry.getOffTime1() != null) {

Re: how to recordError against a form field in a loop

2013-02-07 Thread Shing Hing Man
I think it is a bad idea to generate the control name in the your code. The way the control name is generated might be changed in the uture.  If you collect the dummy fields for onTimes and offTimes first in  onValidateFromOnTime and  onValidateFromOffTime  methods, then do the cross

Re: how to recordError against a form field in a loop

2013-02-06 Thread Shing Hing Man
The following example might be useful. http://lombok.demon.co.uk/tapestry5Demo/test/crossvalidation Shing From: John j...@quivinco.com To: users@tapestry.apache.org Sent: Wednesday, February 6, 2013 9:28 PM Subject: how to recordError against a form field in a