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=23186>. 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=23186 Add ability to html:errors tag to override the default settings for header, footer, prefix and suffix in resource file Summary: Add ability to html:errors tag to override the default settings for header, footer, prefix and suffix in resource file Product: Struts Version: 1.1 Final Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Custom Tags AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] It would be valuable to provide the ability to specify runtime overrides for the header, footer, prefix and suffix used by the html:errors tag when outputting errors. It is not always desireable to display errors in exactly the same way or if converting an application to struts it may take time for the visual designers to consolidate all errors into a uniform display. Allowing runtime overrides for a particular use of the tag would allow pages to decide, if needed, to use different values from what is in the resource file. Typically these values are html formatting. For example: <html:errors header="<ul>" footer="</ul>" prefix="<li>"/> would allow you to display the errors in a list and <html:errors header="<div class="box2">" footer="</div>" prefix="• "/> would allow you to place the errors inside of a div with a bullet prefix on each error. If it were not acceptable to put the html in the actual page for the tag call (as it is above) then the header, footer, prefix and suffix could be used to specify keys in the resource file if this feature is to be implemented in that way. Although too many levels of indirection is just too many levels if it can not be justified. Alt. Example: <html:errors header="errors.boxHead" footer="errors.boxFoot" prefix="errors.bullet"/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
