struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 17679] New: - ActionErrors messages do not display in validated order
Date Wed, 05 Mar 2003 16:52:46 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17679>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17679

ActionErrors messages do not display in validated order

           Summary: ActionErrors messages do not display in validated order
           Product: Struts
           Version: Unknown
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Unknown
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: ken@bluespark.com


Forgive me, I'm fairly new to struts, but I've been doing servlets for a few 
years. 

In a form bean's validate method, one examines and validates fields in a given 
order (usually in the same order as presented in the form). For each 
encountered failure, an ActionError is created and added to the 
ActionErrors "collection". When forwarding to the designated error page which 
contains a <html:errors /> tag, the error messages are output, but NOT in the 
order in which they were processed and added to the ActionErrors when 
validating.

>From doing forms for a few years, it's been the the case 100% of the time that 
we want to see the error messages presented in the same order they were added 
in the validator. I know there's some ways to get the errors in a desired order 
(eg. Husted's tip #17)... but  the default behaviour should be to preserve and 
use the added order.

If I've missed something obvious, or a good reason why preserving the order 
shouldn't be the default behaviour, please enlighten me.

(I can't believe others haven't reported this as a bug)

Thanks,

ken

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org


Mime
View raw message