Re: Displaying errors by the field for array objects

2024-07-31 Thread Prasanth Pasala
Hi Nate, Tried it with and without attr but that didn't work. After trying various things below code worked.  Using OGNL to set value attribute of s:param didn't work either. ${amountIndex} Following did not work: 1. 2. 3. Thanks, Prasanth On 7/31/24 6:28 AM, Nate Kerkhofs wrote:

RE: Displaying errors by the field for array objects

2024-07-31 Thread Nate Kerkhofs
Hi Prasanth, The fieldName attribute on a fieldError tag is not evaluated. You may need to move the amount[] string literal inside the OGNL expression, like so: %{'amount['+#loop.index+']'}. You also may need to use #attr.loop.index instead of #loop.index. I've found that I've had to use that