Take a look here where I use a FieldSnapshot to record an error against a field in a loop
http://tapestry-stitch.uklance.cloudbees.net/mapbindingdemo Using the field directly doesn't work since it changes during loop iteration. On 6 Jun 2014 16:20, "George Christman" <gchrist...@cardaddy.com> wrote: > Hi guys, I'm wondering if there is a way to record an error to a specific > field within a loop and provide css markup to that field. I know this is > really simple to do with a non looping field, just not sure if it's > possible within a loop. Validate="" is not going to be an option in this > case for me do to backend business logic being needed. > > Example, A loop of 14 activityCode fields and field 3, 5, 8 have errors. Is > there a way to provide markup to those specific fields? If I do > recordError(activityCode, "my error"); It seems to mark up the last field > in the array. > > Any thoughts? > > -- > George Christman > www.CarDaddy.com > P.O. Box 735 > Johnstown, New York >