Maybe there is some reason why the following would not work, but ... The s:errors tag occurs inside the s:form tag and as such it had access to the parent form tag and its children tags such as s:inputs etc. Then it is easy to iterate the form's children tags and sort the errors collection according to the order of the children s:input etc. tags. Would not this work?
Thanks, Jan > -----Puvodni zprava----- > Od: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] za > uzivatele Tim Fennell > Odeslano: Thursday, August 07, 2008 15:42 > Komu: Stripes Users List > Predmet: Re: [Stripes-users] Error Ordering > > > Stripes does indeed store things in a HashMap (ValidationErrors is > actually a sublcass of HashMap). The s:errors tag also drops > all the > errors into a set so that we can't display the exact same text twice > (which can happen when using indexed properties and you get the same > error on different rows/indexes). > > We could conceivable change ValidationErrors to extend LinkedHashMap > which would in turn at least maintain insertion order, but I don't > know that it would help a whole lot (we'd also have to modify the > errors tag to respect that ordering). > > -t > > On Aug 6, 2008, at 2:34 PM, Brian Wawok wrote: > > > > > > > It is stored as a hashmap, java makes no guarantee of the order of > > a hashmap. > > If it was like a treemap or a list of some kind, we could > order them.. > > > > > > > -------------------------------------------------------------- > -------- > > --- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win > > great prizes > > Grand prize is a trip for two to an Open Source event anywhere in > > the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Stripes-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/stripes-users > > > -------------------------------------------------------------- > ----------- > This SF.Net email is sponsored by the Moblin Your Move > Developer's challenge > Build the coolest Linux based applications with Moblin SDK & > win great prizes > Grand prize is a trip for two to an Open Source event > anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Stripes-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
