[Stripes-users] Multiple Field Errors, One Error Message

2009-02-27 Thread Smith, Edward
Hello, I have a situation with a form containing indexed fields (i.e. item[0].number, item[1].number, etc) and for one specific custom validation I want to highlight all the indexed error fields in red yet only show the corresponding error message once in the tag. Right now the action bean

Re: [Stripes-users] Multiple Field Errors, One Error Message

2009-02-27 Thread Iwao AVE!
Hi Ed, Assuming you're using Stripes 1.5, adding an empty error to a field highlights the field but does not output any error message in the tag. errors.add(indexedFieldName, new SimpleError("")); Then you can add another error with a dummy field name. errors.add("dummy", new SimpleError("This

Re: [Stripes-users] Multiple Field Errors, One Error Message

2009-02-27 Thread Oscar Westra van Holthe - Kind
On 28-02-2009 at 01:16, Iwao AVE! wrote: > Assuming you're using Stripes 1.5, adding an empty error to a field > highlights the field but does not output any error message in the > tag. > > errors.add(indexedFieldName, new SimpleError("")); > > Then you can add another error with a dummy field n

Re: [Stripes-users] Multiple Field Errors, One Error Message

2009-02-27 Thread Iwao AVE!
It seems to be more efficient. Thank you for pointing it out. Regards, Iwao on 09.2.28 1:38 AM Oscar Westra van Holthe - Kind said the following: > On 28-02-2009 at 01:16, Iwao AVE! wrote: >> Assuming you're using Stripes 1.5, adding an empty error to a field >> highlights the field but does not

Re: [Stripes-users] Multiple Field Errors, One Error Message

2009-02-27 Thread Smith, Edward
That did the trick. Thank you very much Iwao! Ed -Original Message- From: Iwao AVE! [mailto:haraw...@gmail.com] Sent: Friday, February 27, 2009 10:17 AM To: Stripes Users List Subject: Re: [Stripes-users] Multiple Field Errors, One Error Message Hi Ed, Assuming you're using St