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 output any error message in the
>> <stripes:errors /> tag.
>>
>> errors.add(indexedFieldName, new SimpleError(""));
>>
>> Then you can add another error with a dummy field name.
>>
>> errors.add("dummy", new SimpleError("This message is output only
>> once."));
> 
> In addition to this, IIRC it was mentioned on the list at one time that
> multiple identical error messages appear only once. You may be able to use
> that too, although personally I like the empty error message better.
> 
> 
> Oscar


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to