You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by suhas <su...@techmas.hcltech.com> on 2000/07/12 13:17:36 UTC
Re: ordering validations
Hope it is ArrayList as against HashMap
The errors are added to hashmap as errors.add(propertykey , ArrayListofActionError) )
ArrayList is all unordered I think !!!!
----- Original Message -----
From: Mikkel Bruun
To: 'struts-user@jakarta.apache.org'
Sent: Thursday, July 12, 2001 7:33 AM
Subject: SV: ordering validations
As you can see from the source code, the errors are placed in an unordered Collection (a map i presume, cant remember)....so they will come out unordered...
I wish the devs would change this....
Mikkel
-----Oprindelig meddelelse-----
Fra: cahana [mailto:cahana@hawaii.edu]
Sendt: 12 July 2001 01:53
Til: struts-user@jakarta.apache.org
Emne: ordering validations
Does anyone know how to order the way the validation errors show up? When the validate method of my ActionForm gets called and there are multiple errors, the order that the errors are displayed on the jsp is not the order in which I added them to ActionErrors.
cameron
Re: ordering validations -
Posted by suhas <su...@techmas.hcltech.com>.
Sorry for previous mail that I send .
ArrayList is ordered And hashMap is not ..
Adding the errors to hashmap results in unorder ..
Suhas
----- Original Message -----
From: suhas
To: struts-user@jakarta.apache.org
Sent: Wednesday, July 12, 2000 12:17 PM
Subject: Re: ordering validations
Hope it is ArrayList as against HashMap
The errors are added to hashmap as errors.add(propertykey , ArrayListofActionError) )
ArrayList is all unordered I think !!!!
----- Original Message -----
From: Mikkel Bruun
To: 'struts-user@jakarta.apache.org'
Sent: Thursday, July 12, 2001 7:33 AM
Subject: SV: ordering validations
As you can see from the source code, the errors are placed in an unordered Collection (a map i presume, cant remember)....so they will come out unordered...
I wish the devs would change this....
Mikkel
-----Oprindelig meddelelse-----
Fra: cahana [mailto:cahana@hawaii.edu]
Sendt: 12 July 2001 01:53
Til: struts-user@jakarta.apache.org
Emne: ordering validations
Does anyone know how to order the way the validation errors show up? When the validate method of my ActionForm gets called and there are multiple errors, the order that the errors are displayed on the jsp is not the order in which I added them to ActionErrors.
cameron